tmp/tmpni1h1a1u/{from.md → to.md}
RENAMED
|
@@ -1,18 +1,28 @@
|
|
| 1 |
-
#### `basic_ostream` seek members <a id="ostream.seeks">[[ostream.seeks]]</a>
|
| 2 |
|
| 3 |
Each seek member function begins execution by constructing an object of
|
| 4 |
class `sentry`. It returns by destroying the `sentry` object.
|
| 5 |
|
| 6 |
``` cpp
|
| 7 |
pos_type tellp();
|
| 8 |
```
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
``` cpp
|
| 11 |
basic_ostream<charT, traits>& seekp(pos_type pos);
|
| 12 |
```
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
``` cpp
|
| 15 |
basic_ostream<charT, traits>& seekp(off_type off, ios_base::seekdir dir);
|
| 16 |
```
|
| 17 |
|
| 18 |
*Effects:* If `fail() != true`, executes
|
|
|
|
| 1 |
+
##### `basic_ostream` seek members <a id="ostream.seeks">[[ostream.seeks]]</a>
|
| 2 |
|
| 3 |
Each seek member function begins execution by constructing an object of
|
| 4 |
class `sentry`. It returns by destroying the `sentry` object.
|
| 5 |
|
| 6 |
``` cpp
|
| 7 |
pos_type tellp();
|
| 8 |
```
|
| 9 |
|
| 10 |
+
*Returns:* If `fail() != false`, returns `pos_type(-1)` to indicate
|
| 11 |
+
failure. Otherwise, returns `rdbuf()->pubseekoff(0, cur, out)`.
|
| 12 |
+
|
| 13 |
``` cpp
|
| 14 |
basic_ostream<charT, traits>& seekp(pos_type pos);
|
| 15 |
```
|
| 16 |
|
| 17 |
+
*Effects:* If `fail() != true`, executes
|
| 18 |
+
`rdbuf()->pubseekpos(pos, ios_base::out)`. In case of failure, the
|
| 19 |
+
function calls `setstate(failbit)` (which may throw
|
| 20 |
+
`ios_base::failure`).
|
| 21 |
+
|
| 22 |
+
*Returns:* `*this`.
|
| 23 |
+
|
| 24 |
``` cpp
|
| 25 |
basic_ostream<charT, traits>& seekp(off_type off, ios_base::seekdir dir);
|
| 26 |
```
|
| 27 |
|
| 28 |
*Effects:* If `fail() != true`, executes
|