top level:
[official-gcc.git] / libstdc++-v3 / src / misc-inst.cc
blob4bab493033683eee95029ac891b3a9a6eb5c52c9
1 // Explicit instantiation file.
3 // Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
4 //
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)
9 // any later version.
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,
19 // USA.
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:
34 #include <bits/std_string.h>
35 #include <bits/std_algorithm.h>
36 #include <bits/std_locale.h>
37 #include <bits/std_vector.h>
38 #include <bits/std_iterator.h>
39 #include <bits/std_streambuf.h>
40 #include <bits/std_sstream.h>
41 #include <bits/std_fstream.h>
42 #include <bits/std_ios.h>
43 #include <bits/basic_ios.tcc>
44 #include <bits/std_istream.h>
45 #include <bits/std_ostream.h>
47 // NB: unnecessary if the .h headers include these
48 #ifndef _GLIBCPP_FULLY_COMPLIANT_HEADERS
49 #include <bits/sstream.tcc>
50 #include <bits/fstream.tcc>
51 #include <bits/streambuf.tcc>
52 #include <bits/istream.tcc>
53 #include <bits/ostream.tcc>
54 #endif
56 namespace std {
59 // streambuf
60 //
61 template class basic_streambuf<char>;
62 #ifdef _GLIBCPP_USE_WCHAR_T
63 template class basic_streambuf<wchar_t>;
64 #endif
68 // stringstream
70 template class basic_stringbuf<char>;
71 #ifdef _GLIBCPP_USE_WCHAR_T
72 template class basic_stringbuf<wchar_t>;
73 #endif
77 // fstream
79 template class basic_filebuf<char, char_traits<char> >;
80 #ifdef _GLIBCPP_USE_WCHAR_T
81 template class basic_filebuf<wchar_t, char_traits<wchar_t> >;
82 #endif
86 // basic_ios
88 template class basic_ios<char>;
89 #ifdef _GLIBCPP_USE_WCHAR_T
90 template class basic_ios<wchar_t>;
91 #endif
95 // istream
97 template class basic_istream<char>;
98 template istream& ws(istream&);
99 template istream& operator>>(istream&, char&);
100 template istream& operator>>(istream&, unsigned char&);
101 template istream& operator>>(istream&, signed char&);
102 template istream& operator>>(istream&, char*);
103 template istream& operator>>(istream&, unsigned char*);
104 template istream& operator>>(istream&, signed char*);
105 #ifdef _GLIBCPP_USE_WCHAR_T
106 template class basic_istream<wchar_t>;
107 template wistream& ws(wistream&);
108 template wistream& operator>>(wistream&, wchar_t&);
109 template wistream& operator>>(wistream&, wchar_t*);
110 #endif
114 // ostream
116 template class basic_ostream<char>;
117 template ostream& endl(ostream&);
118 template ostream& ends(ostream&);
119 template ostream& flush(ostream&);
120 template ostream& operator<<(ostream&, char);
121 template ostream& operator<<(ostream&, unsigned char);
122 template ostream& operator<<(ostream&, signed char);
123 template ostream& operator<<(ostream&, const char*);
124 template ostream& operator<<(ostream&, const unsigned char*);
125 template ostream& operator<<(ostream&, const signed char*);
126 #ifdef _GLIBCPP_USE_WCHAR_T
127 template class basic_ostream<wchar_t>;
128 template wostream& endl(wostream&);
129 template wostream& ends(wostream&);
130 template wostream& flush(wostream&);
131 template wostream& operator<<(wostream&, wchar_t);
132 template wostream& operator<<(wostream&, char);
133 template wostream& operator<<(wostream&, const wchar_t*);
134 template wostream& operator<<(wostream&, const char*);
135 #endif
139 // iostream
141 template class basic_iostream<char>;
142 #ifdef _GLIBCPP_USE_WCHAR_T
143 template class basic_iostream<wchar_t>;
144 #endif
148 // ifstream
150 template class basic_ifstream<char>;
151 #ifdef _GLIBCPP_USE_WCHAR_T
152 template class basic_ifstream<wchar_t>;
153 #endif
157 // ofstream
159 template class basic_ofstream<char>;
160 #ifdef _GLIBCPP_USE_WCHAR_T
161 template class basic_ofstream<wchar_t>;
162 #endif
166 // istringstream
168 template class basic_istringstream<char>;
169 #ifdef _GLIBCPP_USE_WCHAR_T
170 template class basic_istringstream<wchar_t>;
171 #endif
175 // ostringstream
177 template class basic_ostringstream<char>;
178 #ifdef _GLIBCPP_USE_WCHAR_T
179 template class basic_ostringstream<wchar_t>;
180 #endif
184 // string related to iostreams
186 template
187 basic_istream<char>&
188 operator>>(basic_istream<char>&, string&);
189 template
190 basic_ostream<char>&
191 operator<<(basic_ostream<char>&, const string&);
192 template
193 basic_istream<char>&
194 getline(basic_istream<char>&, string&, char);
195 template
196 basic_istream<char>&
197 getline(basic_istream<char>&, string&);
198 #ifdef _GLIBCPP_USE_WCHAR_T
199 template
200 basic_istream<wchar_t>&
201 operator>>(basic_istream<wchar_t>&, wstring&);
202 template
203 basic_ostream<wchar_t>&
204 operator<<(basic_ostream<wchar_t>&, const wstring&);
205 template
206 basic_istream<wchar_t>&
207 getline(basic_istream<wchar_t>&, wstring&, wchar_t);
208 template
209 basic_istream<wchar_t>&
210 getline(basic_istream<wchar_t>&, wstring&);
211 #endif
214 // algorithm
216 typedef _Char_traits_match<char, char_traits<char> > char_match;
218 template
219 const char*
220 find_if<const char *, char_match>
221 (const char *, const char *, char_match, random_access_iterator_tag);
223 #ifdef _GLIBCPP_USE_WCHAR_T
224 typedef _Char_traits_match<wchar_t, char_traits<wchar_t> > wchar_match;
226 template const wchar_t*
227 find_if<const wchar_t*, wchar_match>
228 (const wchar_t*, const wchar_t*, wchar_match, random_access_iterator_tag);
229 #endif
231 template
232 string*
233 __uninitialized_fill_n_aux<string*, size_t, string>
234 (string*, size_t, string const &, _Bool<false>);
236 template
237 string*
238 __uninitialized_copy_aux<vector<string>::const_iterator, string *>
239 (vector<string>::const_iterator, vector<string>::const_iterator,
240 string*, _Bool<false>);
242 } //std