eofbit, failbit and badbit are member constants with implementation-defined values that can be combined (as if with the bitwise OR operator).goodbit is zero, indicating that none of the other bits is set.

Parameters

none

Return Value

true if the stream's badbit error state flag is set.false otherwise.

Data races

Accesses the stream object.
Concurrent access to the same stream object may cause data races.

Exception safety

Strong guarantee: if an exception is thrown, there are no changes in the stream.