tmp/tmp8a37fpf_/{from.md → to.md}
RENAMED
|
@@ -84,27 +84,27 @@ as a result of any call.
|
|
| 84 |
pos_type seekoff(off_type off, seekdir way, openmode which = in | out) override;
|
| 85 |
```
|
| 86 |
|
| 87 |
*Effects:* Alters the stream position within one of the controlled
|
| 88 |
sequences, if possible, as indicated in
|
| 89 |
-
|
| 90 |
|
| 91 |
-
**Table: `seekoff` positioning** <a id="
|
| 92 |
|
| 93 |
| Conditions | Result |
|
| 94 |
-
| --------------------------------------------------------------------------------------------------------------------
|
| 95 |
| `(which & ios::in) != 0` | positions the input sequence |
|
| 96 |
| `(which & ios::out) != 0` | positions the output sequence |
|
| 97 |
-
| `(which & (ios::in |
|
| 98 |
| Otherwise | the positioning operation fails. |
|
| 99 |
|
| 100 |
|
| 101 |
For a sequence to be positioned, if its next pointer is a null pointer,
|
| 102 |
the positioning operation fails. Otherwise, the function determines
|
| 103 |
-
`newoff` as indicated in
|
| 104 |
|
| 105 |
-
**Table: `newoff` values** <a id="
|
| 106 |
|
| 107 |
| Condition | `newoff` Value |
|
| 108 |
| ----------------- | -------------------------------------------------------------- |
|
| 109 |
| `way == ios::beg` | 0 |
|
| 110 |
| `way == ios::cur` | the next pointer minus the beginning pointer (`xnext - xbeg`). |
|
|
@@ -121,12 +121,11 @@ pointer `xnext`.
|
|
| 121 |
position, if possible. If the positioning operation fails, or if the
|
| 122 |
constructed object cannot represent the resultant stream position, the
|
| 123 |
return value is `pos_type(off_type(-1))`.
|
| 124 |
|
| 125 |
``` cpp
|
| 126 |
-
pos_type seekpos(pos_type sp, ios_base::openmode which
|
| 127 |
-
= ios_base::in | ios_base::out) override;
|
| 128 |
```
|
| 129 |
|
| 130 |
*Effects:* Alters the stream position within one of the controlled
|
| 131 |
sequences, if possible, to correspond to the stream position stored in
|
| 132 |
`sp` (as described below).
|
|
@@ -154,8 +153,8 @@ return value is `pos_type(off_type(-1))`.
|
|
| 154 |
|
| 155 |
``` cpp
|
| 156 |
streambuf<char>* setbuf(char* s, streamsize n) override;
|
| 157 |
```
|
| 158 |
|
| 159 |
-
*Effects:*
|
| 160 |
-
effect.
|
| 161 |
|
|
|
|
| 84 |
pos_type seekoff(off_type off, seekdir way, openmode which = in | out) override;
|
| 85 |
```
|
| 86 |
|
| 87 |
*Effects:* Alters the stream position within one of the controlled
|
| 88 |
sequences, if possible, as indicated in
|
| 89 |
+
[[depr.strstreambuf.seekoff.pos]].
|
| 90 |
|
| 91 |
+
**Table: `seekoff` positioning** <a id="depr.strstreambuf.seekoff.pos">[depr.strstreambuf.seekoff.pos]</a>
|
| 92 |
|
| 93 |
| Conditions | Result |
|
| 94 |
+
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
|
| 95 |
| `(which & ios::in) != 0` | positions the input sequence |
|
| 96 |
| `(which & ios::out) != 0` | positions the output sequence |
|
| 97 |
+
| `(which & (ios::in | ios::out)) ==`<br> `(ios::in | ios::out)` and either<br> `way == ios::beg` or `way == ios::end` | positions both the input and the output sequences |
|
| 98 |
| Otherwise | the positioning operation fails. |
|
| 99 |
|
| 100 |
|
| 101 |
For a sequence to be positioned, if its next pointer is a null pointer,
|
| 102 |
the positioning operation fails. Otherwise, the function determines
|
| 103 |
+
`newoff` as indicated in [[depr.strstreambuf.seekoff.newoff]].
|
| 104 |
|
| 105 |
+
**Table: `newoff` values** <a id="depr.strstreambuf.seekoff.newoff">[depr.strstreambuf.seekoff.newoff]</a>
|
| 106 |
|
| 107 |
| Condition | `newoff` Value |
|
| 108 |
| ----------------- | -------------------------------------------------------------- |
|
| 109 |
| `way == ios::beg` | 0 |
|
| 110 |
| `way == ios::cur` | the next pointer minus the beginning pointer (`xnext - xbeg`). |
|
|
|
|
| 121 |
position, if possible. If the positioning operation fails, or if the
|
| 122 |
constructed object cannot represent the resultant stream position, the
|
| 123 |
return value is `pos_type(off_type(-1))`.
|
| 124 |
|
| 125 |
``` cpp
|
| 126 |
+
pos_type seekpos(pos_type sp, ios_base::openmode which = ios_base::in | ios_base::out) override;
|
|
|
|
| 127 |
```
|
| 128 |
|
| 129 |
*Effects:* Alters the stream position within one of the controlled
|
| 130 |
sequences, if possible, to correspond to the stream position stored in
|
| 131 |
`sp` (as described below).
|
|
|
|
| 153 |
|
| 154 |
``` cpp
|
| 155 |
streambuf<char>* setbuf(char* s, streamsize n) override;
|
| 156 |
```
|
| 157 |
|
| 158 |
+
*Effects:* Behavior is *implementation-defined*, except that
|
| 159 |
+
`setbuf(0, 0)` has no effect.
|
| 160 |
|