ios::bad
bool bad ( ) const;
ios
  cplusplus.com  

Check if an unrecoverable error has occurred.
  The function returns true if the badbit stream's error flag has been set by a previous i/o operation.
  Notice that this member function is not the opposite of good().

Parameters.

none
 

Return Value.
  true if badbit stream's state flag is set.
  false otherwise.

Basic template member declaration ( basic_ios<charT,traits> ):
bool bad () const;

See also.
  good, eof, fail, rdstate, clear
  ios class


© The C++ Resources Network, 2001