basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>& (*pf)(basic_ostream<charT, traits>&));
basic_ostream<charT, traits>&
operator<<(basic_ios<charT, traits>& (*pf)(basic_ios<charT, traits>&));
Effects:
Calls
pf(*this). basic_ostream<charT, traits>& operator<<(ios_base& (*pf)(ios_base&));
Effects:
Calls
pf(*this). basic_ostream<charT, traits>& operator<<(basic_streambuf<charT, traits>* sb);
After the sentry object is
constructed, if
sb is null calls
setstate(badbit)
(which may throw
ios_base::failure)
. Gets characters from
sb
and inserts them in
*this. Characters are read from
sb
and inserted until any of the following occurs:
If the function inserts no characters, it calls
setstate(failbit)
(which may throw
ios_base::failure (
[iostate.flags]))
. If an exception was thrown while extracting a character,
the function sets
failbit
in error state, and if
failbit
is on in
exceptions()
the caught exception is rethrown
.basic_ostream<charT, traits>& operator<<(nullptr_t);
Effects:
Equivalent to:
return *this << s;
where
s is an
implementation-defined
NTCTS (
[defns.ntcts])
.