A UnformattedOutputFunction is a stream output function that performs the following:
basic_ostream::sentry
with automatic storage duration, which performs the following eofbit
or badbit
are set on the output stream, sets the failbit
as well, and if exceptions on failbit are enabled in this output stream's exception mask, throws ios_base::failure
. sentry::operator bool()
, which is equivalent to basic_ios::good
. false
or sentry's constructor threw an exception, no output takes place true
, attempts to perform the desired output by inserting the characters into the output stream as if by calling rdbuf()->sputc()
or rdbuf()->xsputn()
. Additionally, rdbuf()->overflow()
and rdbuf()->sync()
may be called, but no other virtual member function of std::basic_streambuf
. badbit
in the output stream. If exceptions on badbit are enabled in this stream's exception mask, the exception is also rethrown. The following standard library functions are UnformattedOutputFunctions.
basic_ostream::operator<<(basic_streambuf*)
basic_ostream::put
basic_ostream::write
basic_ostream::flush
| (since C++11) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/named_req/UnformattedOutputFunction