Export (0) Print
Expand All

ws

Skips white space in the stream.

template class<Elem, Tr> 
   basic_istream<Elem, Tr>& ws( 
   basic_istream<Elem, Tr>& _Istr 
);

_Istr

A stream.

The stream.

The manipulator extracts and discards any elements ch for which use_facet< ctype<Elem> >(getloc). is(ctype<Elem>::space, ch) is true.

The function calls setstate(eofbit) if it encounters end of file while extracting elements. It returns _Istr.

See operator>> for an example of using ws.

Header: <istream>

Namespace: std

Show:
© 2014 Microsoft