tmp/tmpz_7zttzm/{from.md → to.md}
RENAMED
|
@@ -2,32 +2,37 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
basic_ofstream();
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:* Constructs an object of class
|
| 8 |
-
initializing the base class with
|
| 9 |
-
`sb`
|
| 10 |
-
[[filebuf.cons]]).
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
explicit basic_ofstream(const char* s,
|
| 14 |
ios_base::openmode mode = ios_base::out);
|
|
|
|
|
|
|
| 15 |
```
|
| 16 |
|
| 17 |
-
*Effects:* Constructs an object of class
|
| 18 |
-
initializing the base class with
|
| 19 |
-
`sb`
|
| 20 |
-
[[
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
explicit basic_ofstream(const string& s,
|
| 25 |
ios_base::openmode mode = ios_base::out);
|
|
|
|
|
|
|
| 26 |
```
|
| 27 |
|
| 28 |
-
*Effects:*
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
basic_ofstream(basic_ofstream&& rhs);
|
| 32 |
```
|
| 33 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
basic_ofstream();
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Constructs an object of class
|
| 8 |
+
`basic_ofstream<charT, traits>`, initializing the base class with
|
| 9 |
+
`basic_ostream(&sb)` and initializing `sb` with
|
| 10 |
+
`basic_filebuf<charT, traits>())` ([[ostream.cons]], [[filebuf.cons]]).
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
explicit basic_ofstream(const char* s,
|
| 14 |
ios_base::openmode mode = ios_base::out);
|
| 15 |
+
explicit basic_ofstream(const filesystem::path::value_type* s,
|
| 16 |
+
ios_base::openmode mode = ios_base::out); // wide systems only; see [fstream.syn]
|
| 17 |
```
|
| 18 |
|
| 19 |
+
*Effects:* Constructs an object of class
|
| 20 |
+
`basic_ofstream<charT, traits>`, initializing the base class with
|
| 21 |
+
`basic_ostream(&sb)` and initializing `sb` with
|
| 22 |
+
`basic_filebuf<charT, traits>())` ([[ostream.cons]], [[filebuf.cons]]),
|
| 23 |
+
then calls `rdbuf()->open(s, mode | ios_base::out)`. If that function
|
| 24 |
+
returns a null pointer, calls `setstate(failbit)`.
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
explicit basic_ofstream(const string& s,
|
| 28 |
ios_base::openmode mode = ios_base::out);
|
| 29 |
+
explicit basic_ofstream(const filesystem::path& s,
|
| 30 |
+
ios_base::openmode mode = ios_base::out);
|
| 31 |
```
|
| 32 |
|
| 33 |
+
*Effects:* The same as `basic_ofstream(s.c_str(), mode)`.
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
basic_ofstream(basic_ofstream&& rhs);
|
| 37 |
```
|
| 38 |
|