1 // Forwarding declarations -*- C++ -*-
3 // Copyright (C) 1997, 1998, 1999, 2001 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction. Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License. This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
31 // ISO C++ 14882: 27.2 Forward declarations
37 #include <bits/c++config.h>
38 #include <bits/std_cwchar.h> // For mbstate_t
39 #include <bits/stringfwd.h> // For string forward declarations.
40 #include <bits/functexcept.h>
44 // Forward declarations
45 template<> class char_traits
<char>;
46 #ifdef _GLIBCPP_USE_WCHAR_T
47 template<> class char_traits
<wchar_t>;
50 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
53 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
54 class basic_streambuf
;
56 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
59 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
62 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
65 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
>,
66 typename _Alloc
= allocator
<_CharT
> >
67 class basic_stringbuf
;
69 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
>,
70 typename _Alloc
= allocator
<_CharT
> >
71 class basic_istringstream
;
73 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
>,
74 typename _Alloc
= allocator
<_CharT
> >
75 class basic_ostringstream
;
77 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
>,
78 typename _Alloc
= allocator
<_CharT
> >
79 class basic_stringstream
;
81 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
84 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
87 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
90 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
93 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
94 class istreambuf_iterator
;
96 template<typename _CharT
, typename _Traits
= char_traits
<_CharT
> >
97 class ostreambuf_iterator
;
99 #ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
104 template<class _State
> struct fpos
;
105 #ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
106 // Can't have self-recursive types for streampos.
107 // 21.1.3.1 char_traits sets size_type to streampos
109 // And here, where streampos is typedefed to fpos<traits::state_type>
110 typedef fpos
<mbstate_t> streampos
;
111 # ifdef _GLIBCPP_USE_WCHAR_T
112 typedef fpos
<mbstate_t> wstreampos
;
116 typedef basic_ios
<char> ios
;
117 typedef basic_streambuf
<char> streambuf
;
118 typedef basic_istream
<char> istream
;
119 typedef basic_ostream
<char> ostream
;
120 typedef basic_iostream
<char> iostream
;
121 typedef basic_stringbuf
<char> stringbuf
;
122 typedef basic_istringstream
<char> istringstream
;
123 typedef basic_ostringstream
<char> ostringstream
;
124 typedef basic_stringstream
<char> stringstream
;
125 typedef basic_filebuf
<char> filebuf
;
126 typedef basic_ifstream
<char> ifstream
;
127 typedef basic_ofstream
<char> ofstream
;
128 typedef basic_fstream
<char> fstream
;
130 #ifdef _GLIBCPP_USE_WCHAR_T
131 typedef basic_ios
<wchar_t> wios
;
132 typedef basic_streambuf
<wchar_t> wstreambuf
;
133 typedef basic_istream
<wchar_t> wistream
;
134 typedef basic_ostream
<wchar_t> wostream
;
135 typedef basic_iostream
<wchar_t> wiostream
;
136 typedef basic_stringbuf
<wchar_t> wstringbuf
;
137 typedef basic_istringstream
<wchar_t> wistringstream
;
138 typedef basic_ostringstream
<wchar_t> wostringstream
;
139 typedef basic_stringstream
<wchar_t> wstringstream
;
140 typedef basic_filebuf
<wchar_t> wfilebuf
;
141 typedef basic_ifstream
<wchar_t> wifstream
;
142 typedef basic_ofstream
<wchar_t> wofstream
;
143 typedef basic_fstream
<wchar_t> wfstream
;
147 #endif // _CPP_IOSFWD