tmp/tmpynzbkvgz/{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::in);
|
|
|
|
|
|
|
| 17 |
```
|
| 18 |
|
| 19 |
*Effects:* Calls `rdbuf()->open(s, mode | ios_base::in)`. 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 open(const string& s, ios_base::openmode mode = ios_base::in);
|
|
|
|
| 26 |
```
|
| 27 |
|
| 28 |
-
*Effects:*
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
void close();
|
| 32 |
```
|
| 33 |
|
| 34 |
*Effects:* Calls `rdbuf()->close()` and, if that function returns a null
|
| 35 |
pointer, calls `setstate(failbit)` (which may throw
|
| 36 |
-
`ios_base::failure` ([[iostate.flags]])
|
| 37 |
|
|
|
|
| 12 |
|
| 13 |
*Returns:* `rdbuf()->is_open()`.
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
void open(const char* s, ios_base::openmode mode = ios_base::in);
|
| 17 |
+
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 `ios_base::failure`)
|
| 24 |
+
([[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 |
```
|
| 30 |
|
| 31 |
+
*Effects:* Calls `open(s.c_str(), mode)`.
|
| 32 |
|
| 33 |
``` cpp
|
| 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 |
|