A UnformattedOutputFunction is a stream output function that performs the following:
basic_ostream::sentrywith automatic storage duration, which performs the following
badbitare set on the output stream, sets the
failbitas well, and if exceptions on failbit are enabled in this output stream's exception mask, throws
sentry::operator bool(), which is equivalent to
falseor 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()->sync()may be called, but no other virtual member function of
badbitin 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.
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.