Import gcc-4.4.1
[dragonfly.git] / contrib / gcc-4.4 / libstdc++-v3 / src / istream-inst.cc
1 // Explicit instantiation file.
2
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2006, 2009
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 3, or (at your option)
10 // any later version.
11
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.
16
17 // Under Section 7 of GPL version 3, you are granted additional
18 // permissions described in the GCC Runtime Library Exception, version
19 // 3.1, as published by the Free Software Foundation.
20
21 // You should have received a copy of the GNU General Public License and
22 // a copy of the GCC Runtime Library Exception along with this program;
23 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24 // <http://www.gnu.org/licenses/>.
25
26 //
27 // ISO C++ 14882:
28 //
29
30 #include <istream>
31 #include <iomanip>
32
33 _GLIBCXX_BEGIN_NAMESPACE(std)
34
35   template class basic_istream<char>;
36   template istream& ws(istream&);
37   template istream& operator>>(istream&, char&);
38   template istream& operator>>(istream&, unsigned char&);
39   template istream& operator>>(istream&, signed char&);
40   template istream& operator>>(istream&, char*);
41   template istream& operator>>(istream&, unsigned char*);
42   template istream& operator>>(istream&, signed char*);
43
44   template istream& operator>>(istream&, _Setfill<char>);
45   template istream& operator>>(istream&, _Setiosflags);
46   template istream& operator>>(istream&, _Resetiosflags);
47   template istream& operator>>(istream&, _Setbase);
48   template istream& operator>>(istream&, _Setprecision);
49   template istream& operator>>(istream&, _Setw);
50
51   template istream& istream::_M_extract(unsigned short&);
52   template istream& istream::_M_extract(unsigned int&);  
53   template istream& istream::_M_extract(long&);
54   template istream& istream::_M_extract(unsigned long&);
55   template istream& istream::_M_extract(bool&);
56 #ifdef _GLIBCXX_USE_LONG_LONG
57   template istream& istream::_M_extract(long long&);
58   template istream& istream::_M_extract(unsigned long long&);
59 #endif
60   template istream& istream::_M_extract(float&);
61   template istream& istream::_M_extract(double&);
62   template istream& istream::_M_extract(long double&);
63   template istream& istream::_M_extract(void*&);
64
65 #ifdef _GLIBCXX_USE_WCHAR_T
66   template class basic_istream<wchar_t>;
67   template wistream& ws(wistream&);
68   template wistream& operator>>(wistream&, wchar_t&);
69   template wistream& operator>>(wistream&, wchar_t*);
70
71   template wistream& operator>>(wistream&, _Setfill<wchar_t>);
72   template wistream& operator>>(wistream&, _Setiosflags);
73   template wistream& operator>>(wistream&, _Resetiosflags);
74   template wistream& operator>>(wistream&, _Setbase);
75   template wistream& operator>>(wistream&, _Setprecision);
76   template wistream& operator>>(wistream&, _Setw);
77
78   template wistream& wistream::_M_extract(unsigned short&);
79   template wistream& wistream::_M_extract(unsigned int&);  
80   template wistream& wistream::_M_extract(long&);
81   template wistream& wistream::_M_extract(unsigned long&);
82   template wistream& wistream::_M_extract(bool&);
83 #ifdef _GLIBCXX_USE_LONG_LONG
84   template wistream& wistream::_M_extract(long long&);
85   template wistream& wistream::_M_extract(unsigned long long&);
86 #endif
87   template wistream& wistream::_M_extract(float&);
88   template wistream& wistream::_M_extract(double&);
89   template wistream& wistream::_M_extract(long double&);
90   template wistream& wistream::_M_extract(void*&);
91 #endif
92
93 _GLIBCXX_END_NAMESPACE
94
95 // XXX GLIBCXX_ABI Deprecated
96 #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
97
98 #define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
99   extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
100 _GLIBCXX_LDBL_COMPAT (_ZNSirsERd, _ZNSirsERe);
101 #ifdef _GLIBCXX_USE_WCHAR_T
102 _GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEErsERd,
103                       _ZNSt13basic_istreamIwSt11char_traitsIwEErsERe);
104 #endif
105 _GLIBCXX_LDBL_COMPAT (_ZNSi10_M_extractIdEERSiRT_,
106                       _ZNSi10_M_extractIeEERSiRT_);
107 #ifdef _GLIBCXX_USE_WCHAR_T
108 _GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIdEERS2_RT_,
109                       _ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIeEERS2_RT_);
110 #endif
111
112 #endif // _GLIBCXX_LONG_DOUBLE_COMPAT