tmp/tmpqpuxeu69/{from.md → to.md}
RENAMED
|
@@ -1,33 +1,32 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
basic_filebuf();
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:*
|
| 8 |
-
|
| 9 |
-
`basic_streambuf<charT, traits>()` ([[streambuf.cons]]).
|
| 10 |
|
| 11 |
-
*
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
basic_filebuf(basic_filebuf&& rhs);
|
| 15 |
```
|
| 16 |
|
| 17 |
-
*Effects:*
|
| 18 |
-
*
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
construction, and
|
| 24 |
-
|
| 25 |
|
| 26 |
-
*
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
- `is_open() == rhs_p.is_open()`
|
| 31 |
- `rhs_a.is_open() == false`
|
| 32 |
- `gptr() - eback() == rhs_p.gptr() - rhs_p.eback()`
|
| 33 |
- `egptr() - eback() == rhs_p.egptr() - rhs_p.eback()`
|
|
@@ -42,10 +41,10 @@ this construction.
|
|
| 42 |
|
| 43 |
``` cpp
|
| 44 |
virtual ~basic_filebuf();
|
| 45 |
```
|
| 46 |
|
| 47 |
-
*Effects:*
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
|
|
|
|
| 1 |
+
#### Constructors <a id="filebuf.cons">[[filebuf.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
basic_filebuf();
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Initializes the base class with
|
| 8 |
+
`basic_streambuf<charT, traits>()` [[streambuf.cons]].
|
|
|
|
| 9 |
|
| 10 |
+
*Ensures:* `is_open() == false`.
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
basic_filebuf(basic_filebuf&& rhs);
|
| 14 |
```
|
| 15 |
|
| 16 |
+
*Effects:* It is *implementation-defined* whether the sequence pointers
|
| 17 |
+
in `*this` (`eback()`, `gptr()`, `egptr()`, `pbase()`, `pptr()`,
|
| 18 |
+
`epptr()`) obtain the values which `rhs` had. Whether they do or not,
|
| 19 |
+
`*this` and `rhs` reference separate buffers (if any at all) after the
|
| 20 |
+
construction. Additionally `*this` references the file which `rhs` did
|
| 21 |
+
before the construction, and `rhs` references no file after the
|
| 22 |
+
construction. The openmode, locale and any other state of `rhs` is also
|
| 23 |
+
copied.
|
| 24 |
|
| 25 |
+
*Ensures:* Let `rhs_p` refer to the state of `rhs` just prior to this
|
| 26 |
+
construction and let `rhs_a` refer to the state of `rhs` just after this
|
| 27 |
+
construction.
|
| 28 |
|
| 29 |
- `is_open() == rhs_p.is_open()`
|
| 30 |
- `rhs_a.is_open() == false`
|
| 31 |
- `gptr() - eback() == rhs_p.gptr() - rhs_p.eback()`
|
| 32 |
- `egptr() - eback() == rhs_p.egptr() - rhs_p.eback()`
|
|
|
|
| 41 |
|
| 42 |
``` cpp
|
| 43 |
virtual ~basic_filebuf();
|
| 44 |
```
|
| 45 |
|
| 46 |
+
*Effects:* Calls `close()`. If an exception occurs during the
|
| 47 |
+
destruction of the object, including the call to `close()`, the
|
| 48 |
+
exception is caught but not rethrown
|
| 49 |
+
(see [[res.on.exception.handling]]).
|
| 50 |
|