tmp/tmpj7stm6_0/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,23 @@
|
|
| 1 |
#### Standard `basic_istream` manipulators <a id="istream.manip">[[istream.manip]]</a>
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
``` cpp
|
| 4 |
template<class charT, class traits>
|
| 5 |
basic_istream<charT, traits>& ws(basic_istream<charT, traits>& is);
|
| 6 |
```
|
| 7 |
|
| 8 |
-
*Effects:* Behaves as an unformatted input
|
| 9 |
-
|
| 10 |
-
characters extracted and does not affect the value returned by
|
| 11 |
-
subsequent calls to is.gcount(). After constructing a sentry object
|
| 12 |
extracts characters as long as the next available character `c` is
|
| 13 |
whitespace or until there are no more characters in the sequence.
|
| 14 |
Whitespace characters are distinguished with the same criterion as used
|
| 15 |
-
by `sentry::sentry`
|
| 16 |
characters because there are no more available it sets `eofbit`, but not
|
| 17 |
`failbit`.
|
| 18 |
|
| 19 |
*Returns:* `is`.
|
| 20 |
|
|
|
|
| 1 |
#### Standard `basic_istream` manipulators <a id="istream.manip">[[istream.manip]]</a>
|
| 2 |
|
| 3 |
+
Each instantiation of the function template specified in this subclause
|
| 4 |
+
is a designated addressable function [[namespace.std]].
|
| 5 |
+
|
| 6 |
``` cpp
|
| 7 |
template<class charT, class traits>
|
| 8 |
basic_istream<charT, traits>& ws(basic_istream<charT, traits>& is);
|
| 9 |
```
|
| 10 |
|
| 11 |
+
*Effects:* Behaves as an unformatted input
|
| 12 |
+
function [[istream.unformatted]], except that it does not count the
|
| 13 |
+
number of characters extracted and does not affect the value returned by
|
| 14 |
+
subsequent calls to `is.gcount()`. After constructing a sentry object
|
| 15 |
extracts characters as long as the next available character `c` is
|
| 16 |
whitespace or until there are no more characters in the sequence.
|
| 17 |
Whitespace characters are distinguished with the same criterion as used
|
| 18 |
+
by `sentry::sentry` [[istream.sentry]]. If `ws` stops extracting
|
| 19 |
characters because there are no more available it sets `eofbit`, but not
|
| 20 |
`failbit`.
|
| 21 |
|
| 22 |
*Returns:* `is`.
|
| 23 |
|