From Jason Turner

[ofstream.members]

Diff to HTML by rtfpessoa

tmp/tmp597q92_a/{from.md → to.md} RENAMED
@@ -2,11 +2,11 @@
2
 
3
  ``` cpp
4
  basic_filebuf<charT, traits>* rdbuf() const;
5
  ```
6
 
7
- *Returns:* `const_cast<basic_filebuf<charT, traits>*>(&sb)`.
8
 
9
  ``` cpp
10
  bool is_open() const;
11
  ```
12
 
@@ -18,20 +18,20 @@ 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
  ```
 
2
 
3
  ``` cpp
4
  basic_filebuf<charT, traits>* rdbuf() const;
5
  ```
6
 
7
+ *Returns:* `const_cast<basic_filebuf<charT, traits>*>(addressof(sb))`.
8
 
9
  ``` cpp
10
  bool is_open() const;
11
  ```
12
 
 
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
24
+ `ios_base::failure`) [[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
  ```