Standard C++ Library Reference ISO/IEC (VERSION3)

compares equal to delim (which is also extracted). The function returns *this.
basic_istream::operator>>
basic_istream& operator>>(
basic_istream& (*pfn)(basic_istream&));
basic_istream& operator>>(
ios_base& (*pfn)(ios_base&));
basic_istream& operator>>(
basic_ios<Elem, Tr>& (*pfn)(basic_ios<Elem, Tr>&));
basic_istream& operator>>(
basic_streambuf<Elem, Tr> *strbuf);
basic_istream& operator>>(bool& val);
basic_istream& operator>>(short& val);
basic_istream& operator>>(unsigned short& val);
basic_istream& operator>>(int& val);
basic_istream& operator>>(unsigned int& val);
basic_istream& operator>>(long& val);
basic_istream& operator>>(unsigned long& val);
basic_istream& operator>>(void *& val);
basic_istream& operator>>(float& val);
basic_istream& operator>>(double& val);
basic_istream& operator>>(long double& val);
The first member function ensures that an expression of the form istr >> ws calls
ws(istr), then returns *this. The second and third functions ensure that other manipulators,
such as hex behave similarly. The remaining functions constitute the formatted input functions.
The function:
basic_istream& operator>>(
basic_streambuf<Elem, Tr> *strbuf);
extracts elements, if strbuf is not a null pointer, and inserts them in strbuf. Extraction stops
on end-of-file. It also stops, without extracting the element in question, if an insertion fails or
throws an exception (which is caught but not rethrown). If the function extracts no elements, it
calls setstate(failbit). In any case, the function returns *this.
The function:
basic_istream& operator>>(bool& val);
extracts a field and converts it to a boolean value by calling use_facet<num_get<Elem,
InIt>(getloc()). get(InIt( rdbuf()), Init(0), *this, getloc(),
val). Here, InIt is defined as istreambuf_iterator<Elem, Tr>. The function returns
*this.
The functions:
basic_istream& operator>>(short& val);