istream& ws (istream& is);
template <class charT, class traits> basic_istream<charT,traits>& ws (basic_istream<charT,traits>& is);
true). Then (if good), it extracts characters from is's associated stream buffer object as if calling its member functions sbumpc or sgetc, and finally destroys the sentry object before returning.
>>) operations on input streams (see example below).
|eofbit||The function stopped extracting characters because the input sequence has no more characters available (end-of-file reached).|
|failbit||The stream state of is was not good before the call (applies to C++11 and other implementations constructing a sentry object)|
|badbit||Error on stream (such as when this function catches an exception thrown by an internal operation).|
When set, the integrity of the stream may have been affected.