tmp/tmpyce252l6/{from.md → to.md}
RENAMED
|
@@ -20,11 +20,11 @@ sequence, if possible, in one of three ways:
|
|
| 20 |
input sequence has a putback position available, and if
|
| 21 |
`traits::eq(to_char_type(c), gptr()[-1])` returns `true`, assigns
|
| 22 |
`gptr() - 1` to `gptr()`. Returns: `c`.
|
| 23 |
- If `traits::eq_int_type(c, traits::eof())` returns `false` and if the
|
| 24 |
input sequence has a putback position available, and if `mode` `&`
|
| 25 |
-
`ios_base::out` is nonzero, assigns `c` to `*
|
| 26 |
- If `traits::eq_int_type(c, traits::eof())` returns `true` and if the
|
| 27 |
input sequence has a putback position available, assigns `gptr() - 1`
|
| 28 |
to `gptr()`. Returns: `traits::not_eof(c)`.
|
| 29 |
|
| 30 |
*Returns:* As specified above, or `traits::eof()` to indicate failure.
|
|
@@ -45,15 +45,15 @@ sequence, if possible, in one of two ways:
|
|
| 45 |
function calls `sputc(c)`. Signals success by returning `c`.
|
| 46 |
- If `traits::eq_int_type(c, traits::eof())` returns `true`, there is no
|
| 47 |
character to append. Signals success by returning a value other than
|
| 48 |
`traits::eof()`.
|
| 49 |
|
|
|
|
|
|
|
| 50 |
*Remarks:* The function can alter the number of write positions
|
| 51 |
available as a result of any call.
|
| 52 |
|
| 53 |
-
*Returns:* As specified above, or `traits::eof()` to indicate failure.
|
| 54 |
-
|
| 55 |
The function can make a write position available only if `ios_base::out`
|
| 56 |
is set in `mode`. To make a write position available, the function
|
| 57 |
reallocates (or initially allocates) an array object with a sufficient
|
| 58 |
number of elements to hold the current array object (if any), plus at
|
| 59 |
least one additional write position. If `ios_base::in` is set in `mode`,
|
|
@@ -114,11 +114,11 @@ pos_type seekpos(pos_type sp,
|
|
| 114 |
|
| 115 |
*Returns:* `sp` to indicate success, or `pos_type(off_type(-1))` to
|
| 116 |
indicate failure.
|
| 117 |
|
| 118 |
``` cpp
|
| 119 |
-
basic_streambuf<charT, traits>* setbuf(charT* s, streamsize n);
|
| 120 |
```
|
| 121 |
|
| 122 |
*Effects:* *implementation-defined*, except that `setbuf(0, 0)` has no
|
| 123 |
effect.
|
| 124 |
|
|
|
|
| 20 |
input sequence has a putback position available, and if
|
| 21 |
`traits::eq(to_char_type(c), gptr()[-1])` returns `true`, assigns
|
| 22 |
`gptr() - 1` to `gptr()`. Returns: `c`.
|
| 23 |
- If `traits::eq_int_type(c, traits::eof())` returns `false` and if the
|
| 24 |
input sequence has a putback position available, and if `mode` `&`
|
| 25 |
+
`ios_base::out` is nonzero, assigns `c` to `*–gptr()`. Returns: `c`.
|
| 26 |
- If `traits::eq_int_type(c, traits::eof())` returns `true` and if the
|
| 27 |
input sequence has a putback position available, assigns `gptr() - 1`
|
| 28 |
to `gptr()`. Returns: `traits::not_eof(c)`.
|
| 29 |
|
| 30 |
*Returns:* As specified above, or `traits::eof()` to indicate failure.
|
|
|
|
| 45 |
function calls `sputc(c)`. Signals success by returning `c`.
|
| 46 |
- If `traits::eq_int_type(c, traits::eof())` returns `true`, there is no
|
| 47 |
character to append. Signals success by returning a value other than
|
| 48 |
`traits::eof()`.
|
| 49 |
|
| 50 |
+
*Returns:* As specified above, or `traits::eof()` to indicate failure.
|
| 51 |
+
|
| 52 |
*Remarks:* The function can alter the number of write positions
|
| 53 |
available as a result of any call.
|
| 54 |
|
|
|
|
|
|
|
| 55 |
The function can make a write position available only if `ios_base::out`
|
| 56 |
is set in `mode`. To make a write position available, the function
|
| 57 |
reallocates (or initially allocates) an array object with a sufficient
|
| 58 |
number of elements to hold the current array object (if any), plus at
|
| 59 |
least one additional write position. If `ios_base::in` is set in `mode`,
|
|
|
|
| 114 |
|
| 115 |
*Returns:* `sp` to indicate success, or `pos_type(off_type(-1))` to
|
| 116 |
indicate failure.
|
| 117 |
|
| 118 |
``` cpp
|
| 119 |
+
basic_streambuf<charT, traits>* setbuf(charT* s, streamsize n) override;
|
| 120 |
```
|
| 121 |
|
| 122 |
*Effects:* *implementation-defined*, except that `setbuf(0, 0)` has no
|
| 123 |
effect.
|
| 124 |
|