ios_base::iostate type — I/O status
typedef . . . iostate typedef . . . io_state static const iostate badbitstatic const iostate eofbit static const iostate failbit static const iostate goodbit = iostate(0);
The ios_base::iostate
type
is an integer, enum
, or bitset
type (the exact type is implementation-defined) that represents the
status of an I/O stream. The io_state
type is an integral type that
represents the same information. Some functions that take an
iostate
parameter have an
overloaded version that accepts an io_state
parameter and has the same
functionality as its iostate
counterpart. The io_state
type
and related functions are deprecated, so you should use the iostate
versions.
Table 13-15
lists the iostate
literals and
their meanings. The basic_ios
class template has several member functions for setting, testing,
and clearing iostate
bits.