int operator !() const;
Return Value
Returns a nonzero value if either failbit or badbit is set in the stream’s error state. See rdstate for a description of the error state masks.
ios Overview | Abstract Stream Base Class
See Also ios::good, ios::fail