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