ios::bad

Syntax

int bad() const;

Remarks

Returns a nonzero value to indicate a serious I/O error. This condition corresponds to the badbit error state being set. Do not continue I/O operations on the stream in this situation.

See Also

ios::good, ios:fail, ios::rdstate