From Jason Turner

[ifstream.cons]

Diff to HTML by rtfpessoa

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