tmp/tmp1p8gxg1t/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,18 @@
|
|
| 1 |
#### Standard `basic_istream` manipulators <a id="istream.manip">[[istream.manip]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
namespace std {
|
| 5 |
template <class charT, class traits>
|
| 6 |
basic_istream<charT, traits>& ws(basic_istream<charT, traits>& is);
|
| 7 |
-
}
|
| 8 |
```
|
| 9 |
|
| 10 |
-
*Effects:* Behaves as an unformatted input function
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
Whitespace characters are distinguished with the same criterion as used
|
| 17 |
by `sentry::sentry` ([[istream::sentry]]). If `ws` stops extracting
|
| 18 |
characters because there are no more available it sets `eofbit`, but not
|
| 19 |
`failbit`.
|
| 20 |
|
|
|
|
| 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 function
|
| 9 |
+
([[istream.unformatted]]), except that it does not count the number of
|
| 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` ([[istream::sentry]]). If `ws` stops extracting
|
| 16 |
characters because there are no more available it sets `eofbit`, but not
|
| 17 |
`failbit`.
|
| 18 |
|