OSDN Git Service

2000-04-21 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / src / misc-inst.cc
1 // Explicit instantiation file.
2
3 // Copyright (C) 1997-1999 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   // istringstream
155   //
156   template class basic_istringstream<char>;
157 #ifdef _GLIBCPP_USE_WCHAR_T
158   template class basic_istringstream<wchar_t>; 
159 #endif
160
161
162   //
163   // ostringstream
164   //
165   template class basic_ostringstream<char>;
166 #ifdef _GLIBCPP_USE_WCHAR_T
167   template class basic_ostringstream<wchar_t>; 
168 #endif
169
170
171   //
172   // algorithm
173   //
174   typedef  _Char_traits_match<char, char_traits<char> > char_match;
175
176   template 
177     const char*  
178     find_if<const char *, char_match>
179     (const char *, const char *, char_match, random_access_iterator_tag);
180
181 #ifdef _GLIBCPP_USE_WCHAR_T
182   typedef  _Char_traits_match<wchar_t, char_traits<wchar_t> > wchar_match;
183
184   template const wchar_t*  
185     find_if<const wchar_t*, wchar_match>
186     (const wchar_t*, const wchar_t*, wchar_match, random_access_iterator_tag);
187 #endif
188   
189   template 
190     string* 
191     __uninitialized_fill_n_aux<string*, size_t, string>
192     (string*, size_t, string const &, _Bool<false>);
193
194   template 
195     string* 
196     __uninitialized_copy_aux<vector<string>::const_iterator, string *>
197     (vector<string>::const_iterator, vector<string>::const_iterator, 
198      string*, _Bool<false>);
199
200 } //std
201
202
203
204
205
206
207
208
209
210