Each formatted input function begins execution by constructing an object of class
when converted to a value of type
the function endeavors
to obtain the requested input.
If an exception is thrown during input then
is turned on
(exceptions()&badbit) != 0
then the exception is rethrown.
In any case, the formatted input function destroys the
If no exception has been thrown, it returns