|
class | std::basic_filebuf< _CharT, _Traits > |
|
class | std::basic_fstream< _CharT, _Traits > |
|
class | std::basic_ifstream< _CharT, _Traits > |
|
class | std::basic_ios< _CharT, _Traits > |
|
class | std::basic_iostream< _CharT, _Traits > |
|
class | std::basic_istream< _CharT, _Traits > |
|
class | std::basic_istringstream< _CharT, _Traits, _Alloc > |
|
class | std::basic_ofstream< _CharT, _Traits > |
|
class | std::basic_ostream< _CharT, _Traits > |
|
class | std::basic_ostringstream< _CharT, _Traits, _Alloc > |
|
class | std::basic_streambuf< _CharT, _Traits > |
|
class | std::basic_stringbuf< _CharT, _Traits, _Alloc > |
|
class | std::basic_stringstream< _CharT, _Traits, _Alloc > |
|
class | std::ios_base |
|
class | std::istreambuf_iterator< _CharT, _Traits > |
|
class | std::ostreambuf_iterator< _CharT, _Traits > |
|
class | __gnu_cxx::stdio_filebuf< _CharT, _Traits > |
|
class | __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits > |
|
Nearly all of the I/O classes are parameterized on the type of characters they read and write. (The major exception is ios_base at the top of the hierarchy.) This is a change from pre-Standard streams, which were not templates.
For ease of use and compatibility, all of the basic_* I/O-related classes are given typedef names for both of the builtin character widths (wide and narrow). The typedefs are the same as the pre-Standard names, for example:
typedef basic_ifstream<char> ifstream;
Because properly forward-declaring these classes can be difficult, you should not do it yourself. Instead, include the <iosfwd> header, which contains only declarations of all the I/O classes as well as the typedefs. Trying to forward-declare the typedefs themselves (e.g., class ostream;
) is not valid ISO C++.
For more specific declarations, see https://gcc.gnu.org/onlinedocs/libstdc++/manual/io.html#std.io.objects
◆ filebuf
Class for char
file buffers.
Definition at line 161 of file iosfwd.
◆ fstream
Class for char
mixed input and output file streams.
Definition at line 170 of file iosfwd.
◆ ifstream
Class for char
input file streams.
Definition at line 164 of file iosfwd.
◆ ios
Base class for char
streams.
Definition at line 134 of file iosfwd.
◆ iostream
Base class for char
mixed input and output streams.
Definition at line 146 of file iosfwd.
◆ istream
Base class for char
input streams.
Definition at line 140 of file iosfwd.
◆ istringstream
Class for char
input memory streams.
Definition at line 152 of file iosfwd.
◆ ofstream
Class for char
output file streams.
Definition at line 167 of file iosfwd.
◆ ostream
Base class for char
output streams.
Definition at line 143 of file iosfwd.
◆ ostringstream
Class for char
output memory streams.
Definition at line 155 of file iosfwd.
◆ streambuf
Base class for char
buffers.
Definition at line 137 of file iosfwd.
◆ stringbuf
Class for char
memory buffers.
Definition at line 149 of file iosfwd.
◆ stringstream
Class for char
mixed input and output memory streams.
Definition at line 158 of file iosfwd.
◆ wfilebuf
Class for wchar_t
file buffers.
Definition at line 201 of file iosfwd.
◆ wfstream
Class for wchar_t
mixed input and output file streams.
Definition at line 210 of file iosfwd.
◆ wifstream
Class for wchar_t
input file streams.
Definition at line 204 of file iosfwd.
◆ wios
Base class for wchar_t
streams.
Definition at line 174 of file iosfwd.
◆ wiostream
Base class for wchar_t
mixed input and output streams.
Definition at line 186 of file iosfwd.
◆ wistream
Base class for wchar_t
input streams.
Definition at line 180 of file iosfwd.
◆ wistringstream
Class for wchar_t
input memory streams.
Definition at line 192 of file iosfwd.
◆ wofstream
Class for wchar_t
output file streams.
Definition at line 207 of file iosfwd.
◆ wostream
Base class for wchar_t
output streams.
Definition at line 183 of file iosfwd.
◆ wostringstream
Class for wchar_t
output memory streams.
Definition at line 195 of file iosfwd.
◆ wstreambuf
Base class for wchar_t
buffers.
Definition at line 177 of file iosfwd.
◆ wstringbuf
Class for wchar_t
memory buffers.
Definition at line 189 of file iosfwd.
◆ wstringstream
Class for wchar_t
mixed input and output memory streams.
Definition at line 198 of file iosfwd.