tmp/tmpgm5kf73r/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,18 @@
|
|
| 1 |
#### Rvalue stream extraction <a id="istream.rvalue">[[istream.rvalue]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
template
|
| 5 |
-
|
| 6 |
```
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
*Effects:* Equivalent to:
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
is >> std::forward<T>(x);
|
| 12 |
-
return is;
|
| 13 |
```
|
| 14 |
|
| 15 |
-
*Remarks:* This function shall not participate in overload resolution
|
| 16 |
-
unless the expression `is >> std::forward<T>(x)` is well-formed.
|
| 17 |
-
|
|
|
|
| 1 |
#### Rvalue stream extraction <a id="istream.rvalue">[[istream.rvalue]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
template<class Istream, class T>
|
| 5 |
+
Istream&& operator>>(Istream&& is, T&& x);
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Constraints:* The expression `is >> std::forward<T>(x)` is well-formed
|
| 9 |
+
when treated as an unevaluated operand and `Istream` is publicly and
|
| 10 |
+
unambiguously derived from `ios_base`.
|
| 11 |
+
|
| 12 |
*Effects:* Equivalent to:
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
is >> std::forward<T>(x);
|
| 16 |
+
return std::move(is);
|
| 17 |
```
|
| 18 |
|
|
|
|
|
|
|
|
|