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

the function calls setstate(badbit). It returns *this.
basic_ostream::operator<<
basic_ostream& operator<<(
basic_ostream& (*pfn)(basic_ostream&));
basic_ostream& operator<<(
ios_base& (*pfn)(ios_base&));
basic_ostream& operator<<(
basic_ios<Elem, Tr>& (*pfn)(basic_ios<Elem, Tr>&));
basic_ostream& operator<<(
basic_streambuf<Elem, Tr> *strbuf);
basic_ostream& operator<<(bool val);
basic_ostream& operator<<(short val);
basic_ostream& operator<<(unsigned short val);
basic_ostream& operator<<(int val);
basic_ostream& operator<<(unsigned int val);
basic_ostream& operator<<(long val);
basic_ostream& operator<<(unsigned long val);
basic_ostream& operator<<(float val);
basic_ostream& operator<<(double val);
basic_ostream& operator<<(long double val);
basic_ostream& operator<<(const void *val);
The first member function ensures that an expression of the form ostr << endl calls
endl(ostr), then returns *this. The second and third functions ensure that other
manipulators, such as hex behave similarly. The remaining functions are all formatted output
functions.
The function:
basic_ostream& operator<<(
basic_streambuf<Elem, Tr> *strbuf);
extracts elements from strbuf, if strbuf is not a null pointer, and inserts them. Extraction
stops on end-of-file, or if an extraction throws an exception (which is rethrown). It also stops,
without extracting the element in question, if an insertion fails. If the function inserts no elements,
or if an extraction throws an exception, the function calls setstate(failbit). In any case,
the function returns *this.
The function:
basic_ostream& operator<<(bool val);
converts val to a boolean field and inserts it by calling use_facet<num_put<Elem,
OutIt>(getloc()). put(OutIt( rdbuf()), *this, getloc(), val). Here,
OutIt is defined as ostreambuf_iterator<Elem, Tr>. The function returns *this.
The functions: