Hierarchy
basic_streambuf<>
- Reads and writes the data.
-
ios_base
- Properties of all stream classes independent on the character type.
basic_ios<>
- Properties of all stream classes dependent of the character type.
basic_istream<>
- Base for the stream classes for the reading of the data.
basic_ostream<>
- Base for the stream classes for the writing of the data.
basic_iostream<>
- Base for the stream classes for the reading and writing of the data.
The class hierarchy has type synonyms for the character types char
and wchar_t
. Names not starting with w
are type synonyms for char
, names starting with w
for wchar_t
.
The base classes of the class std::basic_iostream<>
are virtually derived from std::basic_ios<>
, therefore std::basic_iostream<>
has only one instance of std::basic_ios
.