OSDN Git Service

2001-03-04 Phil Edwards <pme@sources.redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / src / misc-inst.cc
1 // Explicit instantiation file.
2
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001 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.
10
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.
15
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.
20
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.
29
30 //
31 // ISO C++ 14882:
32 //
33
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>
46 #include <bits/std_string.h>
47
48 // NB: unnecessary if the .h headers include these
49 #ifndef  _GLIBCPP_FULLY_COMPLIANT_HEADERS
50 #include <bits/sstream.tcc>
51 #include <bits/fstream.tcc>
52 #include <bits/streambuf.tcc>
53 #include <bits/istream.tcc>
54 #include <bits/ostream.tcc>
55 #endif
56
57 namespace std
58 {
59
60   //
61   // streambuf
62   // 
63   template class basic_streambuf<char>;
64 #ifdef _GLIBCPP_USE_WCHAR_T
65   template class basic_streambuf<wchar_t>;
66 #endif
67
68
69   //
70   // stringstream
71   //
72   template class basic_stringbuf<char>;
73 #ifdef _GLIBCPP_USE_WCHAR_T
74   template class basic_stringbuf<wchar_t>;
75 #endif
76
77
78   //
79   // fstream
80   //
81   template class basic_filebuf<char, char_traits<char> >;
82 #ifdef _GLIBCPP_USE_WCHAR_T
83   template class basic_filebuf<wchar_t, char_traits<wchar_t> >;
84 #endif
85
86
87   //
88   // basic_ios
89   //
90   template class basic_ios<char>;
91 #ifdef _GLIBCPP_USE_WCHAR_T
92   template class basic_ios<wchar_t>;
93 #endif
94
95
96   //
97   // istream
98   //
99   template class basic_istream<char>;
100   template istream& ws(istream&);
101   template istream& operator>>(istream&, char&);
102   template istream& operator>>(istream&, unsigned char&);
103   template istream& operator>>(istream&, signed char&);
104   template istream& operator>>(istream&, char*);
105   template istream& operator>>(istream&, unsigned char*);
106   template istream& operator>>(istream&, signed char*);
107 #ifdef _GLIBCPP_USE_WCHAR_T
108   template class basic_istream<wchar_t>;
109   template wistream& ws(wistream&);
110   template wistream& operator>>(wistream&, wchar_t&);
111   template wistream& operator>>(wistream&, wchar_t*);
112 #endif
113
114
115   //
116   // ostream
117   //
118   template class basic_ostream<char>;
119   template ostream& endl(ostream&);
120   template ostream& ends(ostream&);
121   template ostream& flush(ostream&);
122   template ostream& operator<<(ostream&, char);
123   template ostream& operator<<(ostream&, unsigned char);
124   template ostream& operator<<(ostream&, signed char);
125   template ostream& operator<<(ostream&, const char*);
126   template ostream& operator<<(ostream&, const unsigned char*);
127   template ostream& operator<<(ostream&, const signed char*);
128 #ifdef _GLIBCPP_USE_WCHAR_T
129   template class basic_ostream<wchar_t>;
130   template wostream& endl(wostream&);
131   template wostream& ends(wostream&);
132   template wostream& flush(wostream&);
133   template wostream& operator<<(wostream&, wchar_t);
134   template wostream& operator<<(wostream&, char);
135   template wostream& operator<<(wostream&, const wchar_t*);
136   template wostream& operator<<(wostream&, const char*);
137 #endif
138   
139
140   //
141   // iostream
142   //
143   template class basic_iostream<char>;
144 #ifdef _GLIBCPP_USE_WCHAR_T
145   template class basic_iostream<wchar_t>; 
146 #endif
147
148
149   //
150   // ifstream
151   //
152   template class basic_ifstream<char>;
153 #ifdef _GLIBCPP_USE_WCHAR_T
154   template class basic_ifstream<wchar_t>;
155 #endif
156
157
158   //
159   // ofstream
160   //
161   template class basic_ofstream<char>;
162 #ifdef _GLIBCPP_USE_WCHAR_T
163   template class basic_ofstream<wchar_t>;
164 #endif
165
166
167   //
168   // istringstream
169   //
170   template class basic_istringstream<char>;
171 #ifdef _GLIBCPP_USE_WCHAR_T
172   template class basic_istringstream<wchar_t>; 
173 #endif
174
175
176   //
177   // ostringstream
178   //
179   template class basic_ostringstream<char>;
180 #ifdef _GLIBCPP_USE_WCHAR_T
181   template class basic_ostringstream<wchar_t>; 
182 #endif
183
184
185   //
186   // string related to iostreams
187   //
188   template 
189     basic_istream<char>& 
190     operator>>(basic_istream<char>&, string&);
191   template 
192     basic_ostream<char>& 
193     operator<<(basic_ostream<char>&, const string&);
194   template 
195     basic_istream<char>& 
196     getline(basic_istream<char>&, string&, char);
197   template 
198     basic_istream<char>& 
199     getline(basic_istream<char>&, string&);
200 #ifdef _GLIBCPP_USE_WCHAR_T
201   template 
202     basic_istream<wchar_t>& 
203     operator>>(basic_istream<wchar_t>&, wstring&);
204   template 
205     basic_ostream<wchar_t>& 
206     operator<<(basic_ostream<wchar_t>&, const wstring&);
207   template 
208     basic_istream<wchar_t>& 
209     getline(basic_istream<wchar_t>&, wstring&, wchar_t);
210   template 
211     basic_istream<wchar_t>& 
212     getline(basic_istream<wchar_t>&, wstring&);
213 #endif
214
215   //
216   // algorithm
217   //
218   typedef  _Char_traits_match<char, char_traits<char> > char_match;
219
220   template 
221     const char*  
222     find_if<const char *, char_match>
223     (const char *, const char *, char_match, random_access_iterator_tag);
224
225 #ifdef _GLIBCPP_USE_WCHAR_T
226   typedef  _Char_traits_match<wchar_t, char_traits<wchar_t> > wchar_match;
227
228   template const wchar_t*  
229     find_if<const wchar_t*, wchar_match>
230     (const wchar_t*, const wchar_t*, wchar_match, random_access_iterator_tag);
231 #endif
232   
233   template 
234     string* 
235     __uninitialized_fill_n_aux<string*, size_t, string>
236     (string*, size_t, string const &, _Bool<false>);
237
238   template 
239     string* 
240     __uninitialized_copy_aux<vector<string>::const_iterator, string *>
241     (vector<string>::const_iterator, vector<string>::const_iterator, 
242      string*, _Bool<false>);
243
244   template
245     void 
246     __sink_unused_warning<char>(char);
247 #ifdef _GLIBCPP_USE_WCHAR_T
248   template
249     void 
250     __sink_unused_warning<wchar_t>(wchar_t);
251 #endif
252
253   template
254     void
255     __sink_unused_warning<ostreambuf_iterator<char> > 
256     (ostreambuf_iterator<char>);
257 #ifdef _GLIBCPP_USE_WCHAR_T
258   template
259     void
260     __sink_unused_warning<ostreambuf_iterator<wchar_t> > 
261     (ostreambuf_iterator<wchar_t>);
262 #endif
263
264   template
265     void 
266     __pad_char(basic_ios<char>&, char*, const char*,
267                 const streamsize, const streamsize);
268 #ifdef _GLIBCPP_USE_WCHAR_T
269   template
270     void 
271     __pad_char(basic_ios<wchar_t>&, wchar_t*, const wchar_t*,
272                 const streamsize, const streamsize);
273 #endif
274
275   template
276     ostreambuf_iterator<char>
277     __pad_numeric(ostreambuf_iterator<char>, _Ios_Fmtflags, char, int,
278                   const char*, const char*, const char*);
279 #ifdef _GLIBCPP_USE_WCHAR_T
280   template
281     ostreambuf_iterator<wchar_t>
282     __pad_numeric(ostreambuf_iterator<wchar_t>, _Ios_Fmtflags, wchar_t, int,
283                   const wchar_t*, const wchar_t*, const wchar_t*);
284 #endif
285
286   template
287     ostreambuf_iterator<char>
288     __output_float(ostreambuf_iterator<char>, ios_base&, char, 
289                    const char*, size_t);
290 #ifdef _GLIBCPP_USE_WCHAR_T
291   template
292     ostreambuf_iterator<wchar_t>
293     __output_float(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t, 
294                    const char*, size_t);
295 #endif
296
297   template
298     streamsize
299     __copy_streambufs(basic_ios<char>&, basic_streambuf<char>*,
300                       basic_streambuf<char>*); 
301 #ifdef _GLIBCPP_USE_WCHAR_T
302   template
303     streamsize
304     __copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*,
305                       basic_streambuf<wchar_t>*); 
306 #endif
307 } //std