basic_ofstream();
Effects: Constructs an object of class basic_ofstream<charT, traits>, initializing the base class with basic_ostream(&sb) and initializing sb with basic_filebuf<charT, traits>()) ([ostream.cons], [filebuf.cons]).
explicit basic_ofstream(const char* s,
ios_base::openmode mode = ios_base::out);
explicit basic_ofstream(const filesystem::path::value_type* s,
ios_base::openmode mode = ios_base::out); // wide systems only; see [fstream.syn]
Effects: Constructs an object of class basic_ofstream<charT, traits>, initializing the base class with basic_ostream(&sb) and initializing sb with basic_filebuf<charT, traits>()) ([ostream.cons], [filebuf.cons]), then calls rdbuf()->open(s, mode | ios_base::out). If that function returns a null pointer, calls setstate(failbit).
explicit basic_ofstream(const string& s,
ios_base::openmode mode = ios_base::out);
explicit basic_ofstream(const filesystem::path& s,
ios_base::openmode mode = ios_base::out);
basic_ofstream(basic_ofstream&& rhs);