basic_ios::good 

Indicates the state of rdstate & goodbit.


bool good( ) const;

1 or true if rdstate == goodbit (no state flags are set), otherwise, 0 or false.

boolalpha specifies the format of a bool variable.

The member function returns true if rdstate == goodbit (no state flags are set).

See basic_ios::bad for an example of using good.

Header: <ios>

Community Additions

ADD
Show: