* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
[official-gcc.git] / libstdc++-v3 / src / misc-inst.cc
bloba276a732ed3e08af37b25be91db57fcd873e0ea8
1 // Explicit instantiation file.
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
4 // Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library. This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 2, or (at your option)
10 // any later version.
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License along
18 // with this library; see the file COPYING. If not, write to the Free
19 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 // USA.
22 // As a special exception, you may use this file as part of a free software
23 // library without restriction. Specifically, if other files instantiate
24 // templates or use macros or inline functions from this file, or you compile
25 // this file and link it with other files to produce an executable, this
26 // file does not by itself cause the resulting executable to be covered by
27 // the GNU General Public License. This exception does not however
28 // invalidate any other reasons why the executable file might be covered by
29 // the GNU General Public License.
32 // ISO C++ 14882:
35 #include <string>
36 #include <algorithm>
37 #include <locale>
38 #include <vector>
39 #include <iterator>
40 #include <streambuf>
41 #include <sstream>
42 #include <fstream>
43 #include <ios>
44 #include <istream>
45 #include <ostream>
46 #include <iomanip>
48 // NB: Unnecessary if the .h headers already 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
57 namespace std
59 // streambuf
60 template class basic_streambuf<char>;
61 #ifdef _GLIBCPP_USE_WCHAR_T
62 template class basic_streambuf<wchar_t>;
63 #endif
65 // stringbuf
66 template class basic_stringbuf<char>;
67 #ifdef _GLIBCPP_USE_WCHAR_T
68 template class basic_stringbuf<wchar_t>;
69 #endif
71 // filebuf
72 template class basic_filebuf<char, char_traits<char> >;
73 #ifdef _GLIBCPP_USE_WCHAR_T
74 template class basic_filebuf<wchar_t, char_traits<wchar_t> >;
75 #endif
77 // basic_ios
78 template class basic_ios<char>;
79 #ifdef _GLIBCPP_USE_WCHAR_T
80 template class basic_ios<wchar_t>;
81 #endif
83 // iomanip
84 template class _Setfill<char>;
85 template _Setfill<char> setfill(char);
86 #ifdef _GLIBCPP_USE_WCHAR_T
87 template class _Setfill<wchar_t>;
88 template _Setfill<wchar_t> setfill(wchar_t);
89 #endif
91 // istream
92 template class basic_istream<char>;
93 template istream& ws(istream&);
94 template istream& operator>>(istream&, char&);
95 template istream& operator>>(istream&, unsigned char&);
96 template istream& operator>>(istream&, signed char&);
97 template istream& operator>>(istream&, char*);
98 template istream& operator>>(istream&, unsigned char*);
99 template istream& operator>>(istream&, signed char*);
101 template istream& operator>>(istream&, _Setfill<char>);
102 template istream& operator>>(istream&, _Setiosflags);
103 template istream& operator>>(istream&, _Resetiosflags);
104 template istream& operator>>(istream&, _Setbase);
105 template istream& operator>>(istream&, _Setprecision);
106 template istream& operator>>(istream&, _Setw);
108 #ifdef _GLIBCPP_USE_WCHAR_T
109 template class basic_istream<wchar_t>;
110 template wistream& ws(wistream&);
111 template wistream& operator>>(wistream&, wchar_t&);
112 template wistream& operator>>(wistream&, wchar_t*);
114 template wistream& operator>>(wistream&, _Setfill<wchar_t>);
115 template wistream& operator>>(wistream&, _Setiosflags);
116 template wistream& operator>>(wistream&, _Resetiosflags);
117 template wistream& operator>>(wistream&, _Setbase);
118 template wistream& operator>>(wistream&, _Setprecision);
119 template wistream& operator>>(wistream&, _Setw);
120 #endif
122 // ostream
123 template class basic_ostream<char>;
124 template ostream& endl(ostream&);
125 template ostream& ends(ostream&);
126 template ostream& flush(ostream&);
127 template ostream& operator<<(ostream&, char);
128 template ostream& operator<<(ostream&, unsigned char);
129 template ostream& operator<<(ostream&, signed char);
130 template ostream& operator<<(ostream&, const char*);
131 template ostream& operator<<(ostream&, const unsigned char*);
132 template ostream& operator<<(ostream&, const signed char*);
134 template ostream& operator<<(ostream&, _Setfill<char>);
135 template ostream& operator<<(ostream&, _Setiosflags);
136 template ostream& operator<<(ostream&, _Resetiosflags);
137 template ostream& operator<<(ostream&, _Setbase);
138 template ostream& operator<<(ostream&, _Setprecision);
139 template ostream& operator<<(ostream&, _Setw);
141 #ifdef _GLIBCPP_USE_WCHAR_T
142 template class basic_ostream<wchar_t>;
143 template wostream& endl(wostream&);
144 template wostream& ends(wostream&);
145 template wostream& flush(wostream&);
146 template wostream& operator<<(wostream&, wchar_t);
147 template wostream& operator<<(wostream&, char);
148 template wostream& operator<<(wostream&, const wchar_t*);
149 template wostream& operator<<(wostream&, const char*);
151 template wostream& operator<<(wostream&, _Setfill<wchar_t>);
152 template wostream& operator<<(wostream&, _Setiosflags);
153 template wostream& operator<<(wostream&, _Resetiosflags);
154 template wostream& operator<<(wostream&, _Setbase);
155 template wostream& operator<<(wostream&, _Setprecision);
156 template wostream& operator<<(wostream&, _Setw);
157 #endif
160 // iostream
161 template class basic_iostream<char>;
162 #ifdef _GLIBCPP_USE_WCHAR_T
163 template class basic_iostream<wchar_t>;
164 #endif
166 // ifstream
167 template class basic_ifstream<char>;
168 #ifdef _GLIBCPP_USE_WCHAR_T
169 template class basic_ifstream<wchar_t>;
170 #endif
172 // ofstream
173 template class basic_ofstream<char>;
174 #ifdef _GLIBCPP_USE_WCHAR_T
175 template class basic_ofstream<wchar_t>;
176 #endif
178 // fstream
179 template class basic_fstream<char>;
180 #ifdef _GLIBCPP_USE_WCHAR_T
181 template class basic_fstream<wchar_t>;
182 #endif
184 // istringstream
185 template class basic_istringstream<char>;
186 #ifdef _GLIBCPP_USE_WCHAR_T
187 template class basic_istringstream<wchar_t>;
188 #endif
190 // ostringstream
191 template class basic_ostringstream<char>;
192 #ifdef _GLIBCPP_USE_WCHAR_T
193 template class basic_ostringstream<wchar_t>;
194 #endif
196 // stringstream
197 template class basic_stringstream<char>;
198 #ifdef _GLIBCPP_USE_WCHAR_T
199 template class basic_stringstream<wchar_t>;
200 #endif
202 // string related to iostreams
203 template
204 basic_istream<char>&
205 operator>>(basic_istream<char>&, string&);
206 template
207 basic_ostream<char>&
208 operator<<(basic_ostream<char>&, const string&);
209 template
210 basic_istream<char>&
211 getline(basic_istream<char>&, string&, char);
212 template
213 basic_istream<char>&
214 getline(basic_istream<char>&, string&);
215 #ifdef _GLIBCPP_USE_WCHAR_T
216 template
217 basic_istream<wchar_t>&
218 operator>>(basic_istream<wchar_t>&, wstring&);
219 template
220 basic_ostream<wchar_t>&
221 operator<<(basic_ostream<wchar_t>&, const wstring&);
222 template
223 basic_istream<wchar_t>&
224 getline(basic_istream<wchar_t>&, wstring&, wchar_t);
225 template
226 basic_istream<wchar_t>&
227 getline(basic_istream<wchar_t>&, wstring&);
228 #endif
230 // algorithm
231 typedef _Char_traits_match<char, char_traits<char> > char_match;
233 template
234 const char*
235 find_if<const char *, char_match>
236 (const char *, const char *, char_match, random_access_iterator_tag);
238 #ifdef _GLIBCPP_USE_WCHAR_T
239 typedef _Char_traits_match<wchar_t, char_traits<wchar_t> > wchar_match;
241 template const wchar_t*
242 find_if<const wchar_t*, wchar_match>
243 (const wchar_t*, const wchar_t*, wchar_match, random_access_iterator_tag);
244 #endif
246 template
247 string*
248 __uninitialized_fill_n_aux<string*, size_t, string>
249 (string*, size_t, string const &, __false_type);
251 template
252 string*
253 __uninitialized_copy_aux<vector<string>::const_iterator, string *>
254 (vector<string>::const_iterator, vector<string>::const_iterator,
255 string*, __false_type);
257 template
258 streamsize
259 __copy_streambufs(basic_ios<char>&, basic_streambuf<char>*,
260 basic_streambuf<char>*);
261 #ifdef _GLIBCPP_USE_WCHAR_T
262 template
263 streamsize
264 __copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*,
265 basic_streambuf<wchar_t>*);
266 #endif
267 } //std