basic_ios::rdstate

iostate rdstate() const;

The member function returns the stored stream state information.