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

Check if stream is good for i/o operations.
  The function returns true if none of the stream's error flags are set.
  Notice that this function is not the exact opposite of bad().
  The value returned by this function is the same as:
    rdstate( ) == 0

Parameters.

none
 

Return Value.
  true if none of the stream's state flags are set.
  false if any of badbit, eofbit nor failbit stream's state flags are set.

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

See also.
  fail, bad, eof, rdstate, setstate, clear
  ios class


© The C++ Resources Network, 2001