Standard C++ Library Reference ISO/IEC (VERSION3)
stream state information in a base object of type ios_base●
a fill character in an object of type char_type●
basic_ios::bad
bool bad() const;
The member function returns true if rdstate() & badbit is nonzero.
basic_ios::basic_ios
explicit basic_ios(basic_streambuf<Elem, Tr> *strbuf);
basic_ios();
The first constructor initializes its member objects by calling init(strbuf). The second
(protected) constructor leaves its member objects uninitialized. A later call to init must initialize
the object before it can be safely destroyed.
basic_ios::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
basic_ios::clear
void clear(iostate state = goodbit);
The member function replaces the stored stream state information with state | (rdbuf() !=
0 ? goodbit : badbit). If state & exceptions() is nonzero, it then throws an object
of class failure.
basic_ios::copyfmt
basic_ios& copyfmt(const basic_ios& right);
The member function reports the callback event erase_event. It then copies from right into
*this the fill character, the tie pointer, and the formatting information. Before altering the
exception mask, it reports the callback event copyfmt_event. If, after the copy is complete,
state & exceptions() is nonzero, the function effectively calls clear with the argument
rdstate(). It returns *this.
basic_ios::eof
bool eof() const;
The member function returns true if rdstate() & eofbit is nonzero.