Notice that most istream objects have the skipws flag set by default, and therefore already skip all whitespaces before all extraction operations.
Parameters
- is
- Input stream object where to apply.
Because this function is a manipulator, it is designed to be used alone with no arguments in conjunction with the extraction (>>) operations on streams (see example below).
Return Value
The same stream object (is).Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Basic template declaration
| 1 2 |
|
See also
| skipws | Skip whitespaces (manipulator function) |
| noskipws | Do not skip whitespaces (manipulator function) |
