tmp/tmpqrqp5fpf/{from.md → to.md}
RENAMED
|
@@ -7,13 +7,13 @@ namespace std {
|
|
| 7 |
template<class charT, class traits = char_traits<charT>>
|
| 8 |
class basic_ispanstream
|
| 9 |
: public basic_istream<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 |
// [ispanstream.cons], constructors
|
| 18 |
explicit basic_ispanstream(std::span<charT> s,
|
| 19 |
ios_base::openmode which = ios_base::in);
|
|
@@ -49,33 +49,33 @@ includes the termination character `'\0'` in the underlying
|
|
| 49 |
``` cpp
|
| 50 |
explicit basic_ispanstream(std::span<charT> s, ios_base::openmode which = ios_base::in);
|
| 51 |
```
|
| 52 |
|
| 53 |
*Effects:* Initializes the base class with
|
| 54 |
-
`basic_istream<charT, traits>(addressof(sb))` and
|
| 55 |
`basic_spanbuf<charT, traits>(s, which | ios_base::in)`
|
| 56 |
[[spanbuf.cons]].
|
| 57 |
|
| 58 |
``` cpp
|
| 59 |
basic_ispanstream(basic_ispanstream&& rhs);
|
| 60 |
```
|
| 61 |
|
| 62 |
-
*Effects:* Initializes the base class with `std::move(rhs)` and
|
| 63 |
-
with `std::move(rhs.sb)`. Next,
|
| 64 |
-
`basic_istream<charT, traits>::set_rdbuf(addressof(sb))` is called
|
| 65 |
-
install the contained `basic_spanbuf`.
|
| 66 |
|
| 67 |
``` cpp
|
| 68 |
template<class ROS> explicit basic_ispanstream(ROS&& s)
|
| 69 |
```
|
| 70 |
|
| 71 |
*Constraints:* `ROS` models `ranges::borrowed_range`.
|
| 72 |
`!convertible_to<ROS, std::span<charT>> && convertible_to<ROS, std::span<charT const>>`
|
| 73 |
is `true`.
|
| 74 |
|
| 75 |
*Effects:* Let `sp` be `std::span<const charT>(std::forward<ROS>(s))`.
|
| 76 |
-
Equivalent to
|
| 77 |
|
| 78 |
``` cpp
|
| 79 |
basic_ispanstream(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()))
|
| 80 |
```
|
| 81 |
|
|
@@ -133,8 +133,8 @@ is `true`.
|
|
| 133 |
|
| 134 |
*Effects:* Let `sp` be `std::span<const charT>(std::forward<ROS>(s))`.
|
| 135 |
Equivalent to:
|
| 136 |
|
| 137 |
``` cpp
|
| 138 |
-
this->span(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()))
|
| 139 |
```
|
| 140 |
|
|
|
|
| 7 |
template<class charT, class traits = char_traits<charT>>
|
| 8 |
class basic_ispanstream
|
| 9 |
: public basic_istream<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 |
// [ispanstream.cons], constructors
|
| 18 |
explicit basic_ispanstream(std::span<charT> s,
|
| 19 |
ios_base::openmode which = ios_base::in);
|
|
|
|
| 49 |
``` cpp
|
| 50 |
explicit basic_ispanstream(std::span<charT> s, ios_base::openmode which = ios_base::in);
|
| 51 |
```
|
| 52 |
|
| 53 |
*Effects:* Initializes the base class with
|
| 54 |
+
`basic_istream<charT, traits>(addressof(`*`sb`*`))` and *sb* with
|
| 55 |
`basic_spanbuf<charT, traits>(s, which | ios_base::in)`
|
| 56 |
[[spanbuf.cons]].
|
| 57 |
|
| 58 |
``` cpp
|
| 59 |
basic_ispanstream(basic_ispanstream&& rhs);
|
| 60 |
```
|
| 61 |
|
| 62 |
+
*Effects:* Initializes the base class with `std::move(rhs)` and *sb*
|
| 63 |
+
with `std::move(rhs.`*`sb`*`)`. Next,
|
| 64 |
+
`basic_istream<charT, traits>::set_rdbuf(addressof(`*`sb`*`))` is called
|
| 65 |
+
to install the contained `basic_spanbuf`.
|
| 66 |
|
| 67 |
``` cpp
|
| 68 |
template<class ROS> explicit basic_ispanstream(ROS&& s)
|
| 69 |
```
|
| 70 |
|
| 71 |
*Constraints:* `ROS` models `ranges::borrowed_range`.
|
| 72 |
`!convertible_to<ROS, std::span<charT>> && convertible_to<ROS, std::span<charT const>>`
|
| 73 |
is `true`.
|
| 74 |
|
| 75 |
*Effects:* Let `sp` be `std::span<const charT>(std::forward<ROS>(s))`.
|
| 76 |
+
Equivalent to:
|
| 77 |
|
| 78 |
``` cpp
|
| 79 |
basic_ispanstream(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()))
|
| 80 |
```
|
| 81 |
|
|
|
|
| 133 |
|
| 134 |
*Effects:* Let `sp` be `std::span<const charT>(std::forward<ROS>(s))`.
|
| 135 |
Equivalent to:
|
| 136 |
|
| 137 |
``` cpp
|
| 138 |
+
this->span(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()));
|
| 139 |
```
|
| 140 |
|