Each
unformatted
output function begins execution by constructing an object of class
sentry. If this object returns
true,
while converting to a value of type
bool,
the function endeavors
to generate the requested output
. If an exception is thrown during output, then
ios::badbit
is turned on
in
*this's
error state
. If
(exceptions() & badbit) != 0
then the exception is rethrown
. In any case, the unformatted output function ends by destroying the
sentry object, then, if no exception was thrown, returning the value
specified for the unformatted output function
.