int good() const;
Return Value
Returns a nonzero value if all error bits are clear. Note that the good member function is not simply the inverse of the bad function.
ios Overview | Abstract Stream Base Class
See Also ios::bad, ios::fail, ios::rdstate