Files
cppdraft_translate/cppdraft/ios/iostate.md
2025-10-25 03:02:53 +03:00

1.6 KiB
Raw Blame History

[ios.iostate]

31 Input/output library [input.output]

31.5 Iostreams base classes [iostreams.base]

31.5.2 Class ios_base [ios.base]

31.5.2.2 Types [ios.types]

31.5.2.2.3 Type ios_base::iostate [ios.iostate]

🔗

using iostate = T2;

1

#

The typeiostate is a bitmask type ([bitmask.types]) that contains the elements indicated in Table 138.

Table 138 — iostate effects [tab:ios.iostate]

🔗
Element
Effect(s) if set
🔗
badbit
indicates a loss of integrity in an input or output sequence (such as an irrecoverable read error from a file);
🔗
eofbit
indicates that an input operation reached the end of an input sequence;
🔗
failbit
indicates that an input operation failed to read the expected characters, or that an output operation failed to generate the desired characters.

2

#

Typeiostate also defines the constant:

goodbit, the value zero.