Syntax
int operator !() const;
Remarks
Returns a nonzero value if either failbit or badbit are set in the stream's error state. See rdstate for a description of the error state masks.
See Also
ios::good, ios::fail