Standard C++ Library Reference ISO/IEC (VERSION3)

basic_ios::exceptions
iostate exceptions() const;
iostate exceptions(iostate newexcept);
The first member function returns the stored exception mask. The second member function stores
except in the exception mask and returns its previous stored value. Note that storing a new
exception mask can throw an exception just like the call clear( rdstate()).
basic_ios::fail
bool fail() const;
The member function returns true if rdstate() & failbit is nonzero.
basic_ios::fill
char_type fill() const;
char_type fill(char_type ch);
The first member function returns the stored fill character. The second member function stores ch in
the fill character and returns its previous stored value.
basic_ios::good
bool good() const;
The member function returns true if rdstate() == goodbit (no state flags are set).
basic_ios::imbue
locale imbue(const locale& loc);
The member function calls ios_base::imbue(loc). If rdbuf is not a null pointer, it also calls
rdbuf()->pubimbue(loc). In any case, it returns the value returned by the call to
ios_base::imbue.
basic_ios::init
void init(basic_streambuf<Elem, Tr> *strbuf);
The member function stores values in all member objects, so that:
rdbuf() returns strbuf
tie() returns a null pointer
rdstate() returns goodbit if strbuf is nonzero; otherwise, it returns badbit
exceptions() returns goodbit
flags() returns skipws | dec