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:
failbit
are enabled in this output stream's exception mask ((exceptions() & failbit) != 0), throws ios_base::failure.Checks the status of the sentry by calling
sentry::operator bool()
, which is equivalent to
basic_ios::good.
badbit
in the output stream. If exceptions on badbit
are enabled in this stream's exception mask ((exceptions() & badbit) != 0), the exception is also rethrown.3) In any event, whether terminating by exception or returning, the sentry's destructor is called before leaving this function.
[edit] Standard libraryThe 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 LWG 160 C++98 the process of determining whether the exception caughtexception()
corrected to exceptions() LWG 165 C++98 the only virtual member allowed to be
overflow()
also allowed
xsputn()
and sync()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4