basic_ios Class
The template class describes the storage and member functions common to both input streams (of template class basic_istream) and output streams (of template class basic_ostream) that depend on the template parameters. (The class ios_base describes what is common and not dependent on template parameters.) An object of class basic_ios<class Elem, class Traits> helps control a stream with elements of type Elem, whose character traits are determined by the class Traits.
template <class Elem, class Traits>
class basic_ios : public ios_base
Parameters
Elem
A type.Traits
A variable of type char_traits.
Remarks
An object of class basic_ios<class Elem, class Traits> stores:
A tie pointer to an object of type basic_istream<Elem, Traits>.
A stream buffer pointer to an object of type basic_streambuf<Elem, Traits >.
Stream state information in a base object of type ios_base.
A fill character in an object of type char_type.
Constructors
Constructs the basic_ios class. |
Typedefs
A synonym for the template parameter Elem. |
|
A synonym for Traits::int_type. |
|
A synonym for Traits::off_type. |
|
A synonym for Traits::pos_type. |
|
A synonym for the template parameter Traits. |
Member Functions
Indicates a loss of integrity of the stream buffer. |
|
Clears all error flags. |
|
Copies flags from one stream to another. |
|
Indicates if the end of a stream has been reached. |
|
Indicates which exceptions will be thrown by the stream. |
|
Indicates failure to extract a valid field from a stream. |
|
Specifies or returns the character that will be used when the text is not as wide as the stream. |
|
Indicates the stream is in good condition. |
|
Changes the locale. |
|
Called by basic_ios constructors. |
|
Moves all values, except the pointer to the stream buffer, from the parameter to the current object. |
|
Finds the equivalent char to a given char_type. |
|
Routes stream to specified buffer. |
|
Reads the state of bits for flags. |
|
Assigns a stream buffer to be the read buffer for this stream object. |
|
Sets additional flags. |
|
Exchanges the values in this basic_ios object for those of another basic_ios object. The pointers to the stream buffers are not swapped. |
|
Ensures that one stream is processed before another stream. |
|
Finds the equivalent char_type to a given char. |
Operators
Allows use of a basic_ios object as a bool. Automatic type conversion is disabled to prevent common, unintended side effects. |
|
Indicates if the stream is still good. |
|
Indicates if the stream is not bad. |
Requirements
Header: <ios>
Namespace: std