tmp/tmpi8ttimop/{from.md → to.md}
RENAMED
|
@@ -3,33 +3,33 @@
|
|
| 3 |
``` cpp
|
| 4 |
explicit basic_ispanstream(std::span<charT> s, ios_base::openmode which = ios_base::in);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Initializes the base class with
|
| 8 |
-
`basic_istream<charT, traits>(addressof(sb))` and
|
| 9 |
`basic_spanbuf<charT, traits>(s, which | ios_base::in)`
|
| 10 |
[[spanbuf.cons]].
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
basic_ispanstream(basic_ispanstream&& rhs);
|
| 14 |
```
|
| 15 |
|
| 16 |
-
*Effects:* Initializes the base class with `std::move(rhs)` and
|
| 17 |
-
with `std::move(rhs.sb)`. Next,
|
| 18 |
-
`basic_istream<charT, traits>::set_rdbuf(addressof(sb))` is called
|
| 19 |
-
install the contained `basic_spanbuf`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
template<class ROS> explicit basic_ispanstream(ROS&& s)
|
| 23 |
```
|
| 24 |
|
| 25 |
*Constraints:* `ROS` models `ranges::borrowed_range`.
|
| 26 |
`!convertible_to<ROS, std::span<charT>> && convertible_to<ROS, std::span<charT const>>`
|
| 27 |
is `true`.
|
| 28 |
|
| 29 |
*Effects:* Let `sp` be `std::span<const charT>(std::forward<ROS>(s))`.
|
| 30 |
-
Equivalent to
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
basic_ispanstream(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()))
|
| 34 |
```
|
| 35 |
|
|
|
|
| 3 |
``` cpp
|
| 4 |
explicit basic_ispanstream(std::span<charT> s, ios_base::openmode which = ios_base::in);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Initializes the base class with
|
| 8 |
+
`basic_istream<charT, traits>(addressof(`*`sb`*`))` and *sb* with
|
| 9 |
`basic_spanbuf<charT, traits>(s, which | ios_base::in)`
|
| 10 |
[[spanbuf.cons]].
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
basic_ispanstream(basic_ispanstream&& rhs);
|
| 14 |
```
|
| 15 |
|
| 16 |
+
*Effects:* Initializes the base class with `std::move(rhs)` and *sb*
|
| 17 |
+
with `std::move(rhs.`*`sb`*`)`. Next,
|
| 18 |
+
`basic_istream<charT, traits>::set_rdbuf(addressof(`*`sb`*`))` is called
|
| 19 |
+
to install the contained `basic_spanbuf`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
template<class ROS> explicit basic_ispanstream(ROS&& s)
|
| 23 |
```
|
| 24 |
|
| 25 |
*Constraints:* `ROS` models `ranges::borrowed_range`.
|
| 26 |
`!convertible_to<ROS, std::span<charT>> && convertible_to<ROS, std::span<charT const>>`
|
| 27 |
is `true`.
|
| 28 |
|
| 29 |
*Effects:* Let `sp` be `std::span<const charT>(std::forward<ROS>(s))`.
|
| 30 |
+
Equivalent to:
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
basic_ispanstream(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()))
|
| 34 |
```
|
| 35 |
|