A UnformattedOutputFunction is a stream output function that performs the following:1) Constructs an object of type
basic_ostream::sentrywith automatic storage duration, which performs the following:
badbitare set on the output stream, sets the
failbitas well, and if exceptions on
failbitare enabled in this output stream's exception mask, throws
sentry::operator bool(), which is equivalent to
falseor sentry's constructor throws 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
badbitare enabled in this stream's exception mask, the exception is also rethrown.
The following standard library functions are UnformattedOutputFunctions.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
|DR||Applied to||Behavior as published||Correct behavior|
|LWG 63||C++98||the exception-handling policy was missing||added|
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.