The class is designed to be a base class for all of the hierarchy of stream classes.
Both this class and its parent class, ios_base
, define the members of all standard streams that are independent of whether the stream object is an input or an output stream. ios_base
describes the members that are independent of the template parameters, while this one describes the members that are dependent on the template parameters.
The class adds to the information kept by an ios_base
-derived object, the following:
- fill character: character used to pad a field up to the field width. It can be obtained or modified by calling member function fill.
- pointer to tied stream: pointer to the stream object which is tied to this stream object. It can be obtained/modified by calling member function tie.
- pointer to stream buffer: pointer to the associated streambuf object. It can be obtained/modified by calling member function rdbuf.
State flag functions
|good|| Check if the state of the stream is good for i/o operations. (public member function)|
|eof|| Check if eofbit is set (public member function)|
|fail|| Check if either failbit or badbit is set (public member function)|
|bad|| Check if badbit is set (public member function)|
|operator!|| Evaluate stream object (public member function)|