tmp/tmpqqdb5277/{from.md → to.md}
RENAMED
|
@@ -11,11 +11,11 @@ non-null value) and there has been no intervening call to close.
|
|
| 11 |
basic_filebuf* open(const char* s, ios_base::openmode mode);
|
| 12 |
basic_filebuf* open(const filesystem::path::value_type* s,
|
| 13 |
ios_base::openmode mode); // wide systems only; see [fstream.syn]
|
| 14 |
```
|
| 15 |
|
| 16 |
-
*Preconditions:* `s` points to
|
| 17 |
|
| 18 |
*Effects:* If `is_open() != false`, returns a null pointer. Otherwise,
|
| 19 |
initializes the `filebuf` as required. It then opens the file to which
|
| 20 |
`s` resolves, if possible, as if by a call to `fopen` with the second
|
| 21 |
argument determined from `mode & ~ios_base::ate` as indicated in
|
|
@@ -88,5 +88,13 @@ after closing the file.
|
|
| 88 |
|
| 89 |
*Ensures:* `is_open() == false`.
|
| 90 |
|
| 91 |
*Returns:* `this` on success, a null pointer otherwise.
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
basic_filebuf* open(const char* s, ios_base::openmode mode);
|
| 12 |
basic_filebuf* open(const filesystem::path::value_type* s,
|
| 13 |
ios_base::openmode mode); // wide systems only; see [fstream.syn]
|
| 14 |
```
|
| 15 |
|
| 16 |
+
*Preconditions:* `s` points to an NTCTS [[defns.ntcts]].
|
| 17 |
|
| 18 |
*Effects:* If `is_open() != false`, returns a null pointer. Otherwise,
|
| 19 |
initializes the `filebuf` as required. It then opens the file to which
|
| 20 |
`s` resolves, if possible, as if by a call to `fopen` with the second
|
| 21 |
argument determined from `mode & ~ios_base::ate` as indicated in
|
|
|
|
| 88 |
|
| 89 |
*Ensures:* `is_open() == false`.
|
| 90 |
|
| 91 |
*Returns:* `this` on success, a null pointer otherwise.
|
| 92 |
|
| 93 |
+
``` cpp
|
| 94 |
+
native_handle_type native_handle() const noexcept;
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
*Preconditions:* `is_open()` is `true`.
|
| 98 |
+
|
| 99 |
+
*Returns:* The native handle associated with `*this`.
|
| 100 |
+
|