tmp/tmpsb5s_270/{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>*>(
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
bool is_open() const;
|
| 11 |
```
|
| 12 |
|
|
@@ -18,12 +18,12 @@ void open(const filesystem::path::value_type* s,
|
|
| 18 |
ios_base::openmode mode = ios_base::in); // wide systems only; see [fstream.syn]
|
| 19 |
```
|
| 20 |
|
| 21 |
*Effects:* Calls `rdbuf()->open(s, mode | ios_base::in)`. If that
|
| 22 |
function does not return a null pointer calls `clear()`, otherwise calls
|
| 23 |
-
`setstate(failbit)` (which may throw
|
| 24 |
-
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
void open(const string& s, ios_base::openmode mode = ios_base::in);
|
| 28 |
void open(const filesystem::path& s, ios_base::openmode mode = ios_base::in);
|
| 29 |
```
|
|
@@ -34,7 +34,7 @@ void open(const filesystem::path& s, ios_base::openmode mode = ios_base::in);
|
|
| 34 |
void close();
|
| 35 |
```
|
| 36 |
|
| 37 |
*Effects:* Calls `rdbuf()->close()` and, if that function returns a null
|
| 38 |
pointer, calls `setstate(failbit)` (which may throw
|
| 39 |
-
`ios_base::failure`)
|
| 40 |
|
|
|
|
| 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::in); // wide systems only; see [fstream.syn]
|
| 19 |
```
|
| 20 |
|
| 21 |
*Effects:* Calls `rdbuf()->open(s, mode | ios_base::in)`. 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 open(const string& s, ios_base::openmode mode = ios_base::in);
|
| 28 |
void open(const filesystem::path& s, ios_base::openmode mode = ios_base::in);
|
| 29 |
```
|
|
|
|
| 34 |
void close();
|
| 35 |
```
|
| 36 |
|
| 37 |
*Effects:* Calls `rdbuf()->close()` and, if that function returns a null
|
| 38 |
pointer, calls `setstate(failbit)` (which may throw
|
| 39 |
+
`ios_base::failure`) [[iostate.flags]].
|
| 40 |
|