ios::fail
bool fail ( ) const; | ios |
cplusplus.com |
Check if failure has occurred.
The function returns true if an error other than End-Of-File has occurred
in an i/o operation.
The function checks if either badbit or failbit state flags
are set in the stream, if so it returns true, otherwise
false.
Parameters.
Return Value.
true if badbit and/or failbit are set.
false if none of badbit nor failbit are set.
Basic template member declaration ( basic_ios<charT,traits> ):
bool fail () const; |
See also.
good,
bad,
eof,
rdstate,
clear
ios class