A FormattedInputFunction is a stream input function that performs the following:
basic_istream::sentrywith automatic storage duration and with the
noskipwsargument set to
false, which performs the following
badbitare set on the input stream, sets the
failbitas well, and if exceptions on failbit are enabled in this input stream's exception mask, throws
ios_base::skipwsflag is set on this input stream, extracts and discards characters from the input stream until one of the following becomes true:
std::ctypefacet of the locale currently imbued in this input stream. The non-whitespace character is not extracted.
eofbitare set and if the stream is on for exceptions on one of these bits,
sentry::operator bool(), which is equivalent to
falseor sentry's constructor threw an exception, no input takes place
true, performs the input as if by calling
eofbit. If exceptions on eofbit are enabled in this stream's exception mask, throws
badbitin the input stream. If exceptions on badbit are enabled in this stream's exception mask, the exception is also rethrown.
The following standard library functions are FormattedInputFunctions.
basic_istream::operator>>(int, long, double, void*, bool)
operator>>, when called on the return value of
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.