From Jason Turner

[ofstream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpz_7zttzm/{from.md → to.md} +15 -10
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 `basic_ofstream<charT,traits>`,
8
- initializing the base class with `basic_ostream(&sb)` and initializing
9
- `sb` with `basic_filebuf<charT,traits>())` ([[ostream.cons]],
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 `basic_ofstream<charT,traits>`,
18
- initializing the base class with `basic_ostream(&sb)` and initializing
19
- `sb` with `basic_filebuf<charT,traits>())` ([[ostream.cons]],
20
- [[filebuf.cons]]), then calls `rdbuf()->open(s, mode|ios_base::out)`. If
21
- that function returns a null pointer, calls `setstate(failbit)`.
 
22
 
23
  ``` cpp
24
  explicit basic_ofstream(const string& s,
25
  ios_base::openmode mode = ios_base::out);
 
 
26
  ```
27
 
28
- *Effects:* the same as `basic_ofstream(s.c_str(), mode);`
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