From Jason Turner

[ofstream.members]

Diff to HTML by rtfpessoa

tmp/tmpmspzg_ev/{from.md → to.md} RENAMED
@@ -12,26 +12,29 @@ bool is_open() const;
12
 
13
  *Returns:* `rdbuf()->is_open()`.
14
 
15
  ``` cpp
16
  void open(const char* s, ios_base::openmode mode = ios_base::out);
 
 
17
  ```
18
 
19
  *Effects:* Calls `rdbuf()->open(s, mode | ios_base::out)`. If that
20
  function does not return a null pointer calls `clear()`, otherwise calls
21
- `setstate(failbit)` (which may throw `ios_base::failure`
22
- ([[iostate.flags]])).
23
 
24
  ``` cpp
25
  void close();
26
  ```
27
 
28
  *Effects:* Calls `rdbuf()->close()` and, if that function fails (returns
29
  a null pointer), calls `setstate(failbit)` (which may throw
30
- `ios_base::failure` ([[iostate.flags]])).
31
 
32
  ``` cpp
33
  void open(const string& s, ios_base::openmode mode = ios_base::out);
 
34
  ```
35
 
36
- *Effects:* calls `open(s.c_str(), mode);`
37
 
 
12
 
13
  *Returns:* `rdbuf()->is_open()`.
14
 
15
  ``` cpp
16
  void open(const char* s, ios_base::openmode mode = ios_base::out);
17
+ void open(const filesystem::path::value_type* s,
18
+ ios_base::openmode mode = ios_base::out); // wide systems only; see [fstream.syn]
19
  ```
20
 
21
  *Effects:* Calls `rdbuf()->open(s, mode | ios_base::out)`. If that
22
  function does not return a null pointer calls `clear()`, otherwise calls
23
+ `setstate(failbit)` (which may throw `ios_base::failure`)
24
+ ([[iostate.flags]]).
25
 
26
  ``` cpp
27
  void close();
28
  ```
29
 
30
  *Effects:* Calls `rdbuf()->close()` and, if that function fails (returns
31
  a null pointer), calls `setstate(failbit)` (which may throw
32
+ `ios_base::failure`) ([[iostate.flags]]).
33
 
34
  ``` cpp
35
  void open(const string& s, ios_base::openmode mode = ios_base::out);
36
+ void open(const filesystem::path& s, ios_base::openmode mode = ios_base::out);
37
  ```
38
 
39
+ *Effects:* Calls `open(s.c_str(), mode)`.
40