29 Input/output library [input.output]

29.5 Iostreams base classes [iostreams.base]

29.5.3 Class ios_­base [ios.base] Types [ios.types] Type ios_­base​::​iostate [ios.iostate]

using iostate = T2;
The type iostate is a bitmask type ([bitmask.types]) that contains the elements indicated in [tab:iostreams.iostate.effects]Table *tab:iostreams.iostate.effects.
Table 106iostate effects
Effect(s) if set
indicates a loss of integrity in an input or output sequence (such as an irrecoverable read error from a file);
indicates that an input operation reached the end of an input sequence;
indicates that an input operation failed to read the expected characters, or that an output operation failed to generate the desired characters.
Type iostate also defines the constant: