Condividi tramite


basic_ios::good

Indicates the state of rdstate & goodbit.

bool good( ) const;

Return Value

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

Remarks

boolalpha specifies the format of a bool variable.

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

Example

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

Requirements

Header: <ios>

Namespace: std

See Also

Concepts

basic_ios Class

basic_ios Members

iostream Programming

iostreams Conventions