basic_ios::bad

bool bad() const;

The member function returns true if rdstate() & badbit.