OSDN Git Service

2000-06-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / src / misc-inst.cc
1 // Explicit instantiation file.
2
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.
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
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
55
56 namespace std {
57
58   //
59   // streambuf
60   // 
61   template class basic_streambuf<char>;
62 #ifdef _GLIBCPP_USE_WCHAR_T
63   template class basic_streambuf<wchar_t>;
64 #endif
65
66
67   //
68   // stringstream
69   //
70   template class basic_stringbuf<char>;
71 #ifdef _GLIBCPP_USE_WCHAR_T
72   template class basic_stringbuf<wchar_t>;
73 #endif
74
75
76   //
77   // fstream
78   //
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
83
84
85   //
86   // basic_ios
87   //
88   template class basic_ios<char>;
89 #ifdef _GLIBCPP_USE_WCHAR_T
90   template class basic_ios<wchar_t>;
91 #endif
92
93
94   //
95   // istream
96   //
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
111
112
113   //
114   // ostream
115   //
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   // template ostream& operator<<(ostream&, _Setfill<char>);
127   // template ostream& operator<<(ostream&, _Setw);
128   // template _Setfill<char> setfill(char);
129 #ifdef _GLIBCPP_USE_WCHAR_T
130   template class basic_ostream<wchar_t>;
131   template wostream& endl(wostream&);
132   template wostream& ends(wostream&);
133   template wostream& flush(wostream&);
134   template wostream& operator<<(wostream&, wchar_t);
135   template wostream& operator<<(wostream&, char);
136   template wostream& operator<<(wostream&, const wchar_t*);
137   template wostream& operator<<(wostream&, const char*);
138   // template wostream& operator<<(wostream&, _Setfill<wchar_t>);
139   // template wostream& operator<<(wostream&, _Setw);
140   // template _Setfill<wchar_t> setfill(wchar_t);
141 #endif
142   
143
144   //
145   // iostream
146   //
147   template class basic_iostream<char>;
148 #ifdef _GLIBCPP_USE_WCHAR_T
149   template class basic_iostream<wchar_t>; 
150 #endif
151
152
153   //
154   // ifstream
155   //
156   template class basic_ifstream<char>;
157 #ifdef _GLIBCPP_USE_WCHAR_T
158   template class basic_ifstream<wchar_t>;
159 #endif
160
161
162   //
163   // ofstream
164   //
165   template class basic_ofstream<char>;
166 #ifdef _GLIBCPP_USE_WCHAR_T
167   template class basic_ofstream<wchar_t>;
168 #endif
169
170
171   //
172   // istringstream
173   //
174   template class basic_istringstream<char>;
175 #ifdef _GLIBCPP_USE_WCHAR_T
176   template class basic_istringstream<wchar_t>; 
177 #endif
178
179
180   //
181   // ostringstream
182   //
183   template class basic_ostringstream<char>;
184 #ifdef _GLIBCPP_USE_WCHAR_T
185   template class basic_ostringstream<wchar_t>; 
186 #endif
187
188
189   //
190   // string related to iostreams
191   //
192   template 
193     basic_istream<char>& 
194     operator>>(basic_istream<char>&, string&);
195   template 
196     basic_ostream<char>& 
197     operator<<(basic_ostream<char>&, const string&);
198   template 
199     basic_istream<char>& 
200     getline(basic_istream<char>&, string&, char);
201   template 
202     basic_istream<char>& 
203     getline(basic_istream<char>&, string&);
204 #ifdef _GLIBCPP_USE_WCHAR_T
205   template 
206     basic_istream<wchar_t>& 
207     operator>>(basic_istream<wchar_t>&, wstring&);
208   template 
209     basic_ostream<wchar_t>& 
210     operator<<(basic_ostream<wchar_t>&, const wstring&);
211   template 
212     basic_istream<wchar_t>& 
213     getline(basic_istream<wchar_t>&, wstring&, wchar_t);
214   template 
215     basic_istream<wchar_t>& 
216     getline(basic_istream<wchar_t>&, wstring&);
217 #endif
218
219   //
220   // algorithm
221   //
222   typedef  _Char_traits_match<char, char_traits<char> > char_match;
223
224   template 
225     const char*  
226     find_if<const char *, char_match>
227     (const char *, const char *, char_match, random_access_iterator_tag);
228
229 #ifdef _GLIBCPP_USE_WCHAR_T
230   typedef  _Char_traits_match<wchar_t, char_traits<wchar_t> > wchar_match;
231
232   template const wchar_t*  
233     find_if<const wchar_t*, wchar_match>
234     (const wchar_t*, const wchar_t*, wchar_match, random_access_iterator_tag);
235 #endif
236   
237   template 
238     string* 
239     __uninitialized_fill_n_aux<string*, size_t, string>
240     (string*, size_t, string const &, _Bool<false>);
241
242   template 
243     string* 
244     __uninitialized_copy_aux<vector<string>::const_iterator, string *>
245     (vector<string>::const_iterator, vector<string>::const_iterator, 
246      string*, _Bool<false>);
247
248 } //std
249
250
251
252
253
254
255
256
257
258