ios_base::iostate
Defines constants describing the state of a stream.
static const iostate badbit, eofbit, failbit, goodbit;
Remarks
The type is a bitmask type that describes an object that can store stream state information. The distinct flag values (elements) are:
badbit, to record a loss of integrity of the stream buffer.
eofbit, to record end-of-file while extracting from a stream.
failbit, to record a failure to extract a valid field from a stream.
In addition, a useful value is goodbit, where none of the previously mentioned bits are set.
Requirements
Header: <ios>
Namespace: std