r ends early,
this number will be less than the number of variables provided.
Reads an input range according to a format string and stores the read values into its arguments.
Format specifiers with format character 'd', 'u' and 'c' can take a '*' parameter for skipping values.
The second version of formattedRead takes the format string as template argument. In this case, it is checked for consistency at compile-time.
r | an input range, where the formatted input is read from |
fmt | a format string |
args | a variadic list of arguments where the read values are stored |
Range | the type of the input range r |
Char | the character type used for fmt |
Args | a variadic list of types of the arguments |
r ends early,
this number will be less than the number of variables provided.
if reading did not succeed.
args can be given as pointers
to that variable, but it is not recommended to do so, because this option might be removed in the future.