ios::bad |
public member function |
Check if badbit is set
The function returns true if the badbit stream's error flag has been set by a previous i/o operation. This flag is set by standard input operations when an error that caused the loss of integrity of the stream happened.
Notice that this function is not the exact opposite of good, which checks whether none of the error flags (eofbit, failbit and badbit) are set, and not only the badbit flag.
Parameters
none
Return Value
true if
badbit stream's state flag is set.
false otherwise.
Basic template member declaration
( basic_ios<charT,traits> )
See also
ios::good | Check if the state of the stream is good for i/o operations. (public member function) |
ios::fail | Check if either failbit or badbit is set (public member function) |
ios::eof | Check if eofbit is set (public member function) |
ios::clear | Set error state flags (public member function) |