tmp/tmpskqly574/{from.md → to.md}
RENAMED
|
@@ -7,13 +7,13 @@ namespace std {
|
|
| 7 |
template<class charT, class traits = char_traits<charT>>
|
| 8 |
class basic_spanbuf
|
| 9 |
: public basic_streambuf<charT, traits> {
|
| 10 |
public:
|
| 11 |
using char_type = charT;
|
| 12 |
-
using int_type =
|
| 13 |
-
using pos_type =
|
| 14 |
-
using off_type =
|
| 15 |
using traits_type = traits;
|
| 16 |
|
| 17 |
// [spanbuf.cons], constructors
|
| 18 |
basic_spanbuf() : basic_spanbuf(ios_base::in | ios_base::out) {}
|
| 19 |
explicit basic_spanbuf(ios_base::openmode which)
|
|
@@ -190,11 +190,11 @@ follows:
|
|
| 190 |
- `(pptr() - pbase())` for the output sequence, or `(gptr() - eback())`
|
| 191 |
for the input sequence when `way` is `ios_base::cur`;
|
| 192 |
- when `way` is `ios_base::end` :
|
| 193 |
- `(pptr() - pbase())` if `ios_base::out` is set in *mode* and
|
| 194 |
`ios_base::in` is not set in *mode*,
|
| 195 |
-
- `buf.size()` otherwise.
|
| 196 |
|
| 197 |
If `baseoff` + `off` would overflow, or if `baseoff` + `off` is less
|
| 198 |
than zero, or if `baseoff` + `off` is greater than *`buf`*`.size()`, the
|
| 199 |
positioning operation fails. Otherwise, the function computes
|
| 200 |
|
|
|
|
| 7 |
template<class charT, class traits = char_traits<charT>>
|
| 8 |
class basic_spanbuf
|
| 9 |
: public basic_streambuf<charT, traits> {
|
| 10 |
public:
|
| 11 |
using char_type = charT;
|
| 12 |
+
using int_type = traits::int_type;
|
| 13 |
+
using pos_type = traits::pos_type;
|
| 14 |
+
using off_type = traits::off_type;
|
| 15 |
using traits_type = traits;
|
| 16 |
|
| 17 |
// [spanbuf.cons], constructors
|
| 18 |
basic_spanbuf() : basic_spanbuf(ios_base::in | ios_base::out) {}
|
| 19 |
explicit basic_spanbuf(ios_base::openmode which)
|
|
|
|
| 190 |
- `(pptr() - pbase())` for the output sequence, or `(gptr() - eback())`
|
| 191 |
for the input sequence when `way` is `ios_base::cur`;
|
| 192 |
- when `way` is `ios_base::end` :
|
| 193 |
- `(pptr() - pbase())` if `ios_base::out` is set in *mode* and
|
| 194 |
`ios_base::in` is not set in *mode*,
|
| 195 |
+
- *`buf`*`.size()` otherwise.
|
| 196 |
|
| 197 |
If `baseoff` + `off` would overflow, or if `baseoff` + `off` is less
|
| 198 |
than zero, or if `baseoff` + `off` is greater than *`buf`*`.size()`, the
|
| 199 |
positioning operation fails. Otherwise, the function computes
|
| 200 |
|