I/O Forward Declarations
Typedefs
Detailed Description
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 http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#10
Typedef Documentation
typedef basic_filebuf<char> filebuf |
typedef basic_fstream<char> fstream |
typedef basic_ifstream<char> ifstream |
typedef basic_ios<char> ios |
typedef basic_iostream<char> iostream |
typedef basic_istream<char> istream |
typedef basic_istringstream<char> istringstream |
typedef basic_ofstream<char> ofstream |
typedef basic_ostream<char> ostream |
typedef basic_ostringstream<char> ostringstream |
typedef basic_streambuf<char> streambuf |
typedef basic_stringbuf<char> stringbuf |
typedef basic_stringstream<char> stringstream |
typedef basic_filebuf<wchar_t> wfilebuf |
typedef basic_fstream<wchar_t> wfstream |
typedef basic_ifstream<wchar_t> wifstream |
typedef basic_ios<wchar_t> wios |
typedef basic_iostream<wchar_t> wiostream |
typedef basic_istream<wchar_t> wistream |
typedef basic_istringstream<wchar_t> wistringstream |
typedef basic_ofstream<wchar_t> wofstream |
typedef basic_ostream<wchar_t> wostream |
typedef basic_ostringstream<wchar_t> wostringstream |
typedef basic_streambuf<wchar_t> wstreambuf |
typedef basic_stringbuf<wchar_t> wstringbuf |
typedef basic_stringstream<wchar_t> wstringstream |