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