|
libstdc++
|
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:
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
| typedef basic_filebuf<char> std::filebuf |
Class for char file buffers.
Definition at line 62 of file iosfwd_file.h.
| typedef basic_fstream<char> std::fstream |
Class for char mixed input and output file streams.
Definition at line 71 of file iosfwd_file.h.
| typedef basic_ifstream<char> std::ifstream |
Class for char input file streams.
Definition at line 65 of file iosfwd_file.h.
| typedef basic_iostream<char> std::iostream |
| typedef basic_istream<char> std::istream |
| typedef basic_istringstream<char> std::istringstream |
Class for char input memory streams.
Definition at line 75 of file iosfwd_string.h.
| typedef basic_ofstream<char> std::ofstream |
Class for char output file streams.
Definition at line 68 of file iosfwd_file.h.
| typedef basic_ostream<char> std::ostream |
| typedef basic_ostringstream<char> std::ostringstream |
Class for char output memory streams.
Definition at line 78 of file iosfwd_string.h.
| typedef basic_streambuf<char> std::streambuf |
| typedef basic_stringbuf<char> std::stringbuf |
Class for char memory buffers.
Definition at line 72 of file iosfwd_string.h.
| typedef basic_stringstream<char> std::stringstream |
Class for char mixed input and output memory streams.
Definition at line 81 of file iosfwd_string.h.
| typedef basic_filebuf<wchar_t> std::wfilebuf |
Class for wchar_t file buffers.
Definition at line 75 of file iosfwd_file.h.
| typedef basic_fstream<wchar_t> std::wfstream |
Class for wchar_t mixed input and output file streams.
Definition at line 84 of file iosfwd_file.h.
| typedef basic_ifstream<wchar_t> std::wifstream |
Class for wchar_t input file streams.
Definition at line 78 of file iosfwd_file.h.
| typedef basic_iostream<wchar_t> std::wiostream |
| typedef basic_istream<wchar_t> std::wistream |
| typedef basic_istringstream<wchar_t> std::wistringstream |
Class for wchar_t input memory streams.
Definition at line 88 of file iosfwd_string.h.
| typedef basic_ofstream<wchar_t> std::wofstream |
Class for wchar_t output file streams.
Definition at line 81 of file iosfwd_file.h.
| typedef basic_ostream<wchar_t> std::wostream |
| typedef basic_ostringstream<wchar_t> std::wostringstream |
Class for wchar_t output memory streams.
Definition at line 91 of file iosfwd_string.h.
| typedef basic_streambuf<wchar_t> std::wstreambuf |
| typedef basic_stringbuf<wchar_t> std::wstringbuf |
Class for wchar_t memory buffers.
Definition at line 85 of file iosfwd_string.h.
| typedef basic_stringstream<wchar_t> std::wstringstream |
Class for wchar_t mixed input and output memory streams.
Definition at line 94 of file iosfwd_string.h.