From Jason Turner

[fstream.cons]

Diff to HTML by rtfpessoa

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