OSDN Git Service

4d3bc1a74dc8327149fba6acc3df0747dcf52ce6
[pf3gnuchains/gcc-fork.git] / 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 namespace std _GLIBCXX_VISIBILITY(default)
34 {
35 _GLIBCXX_BEGIN_NAMESPACE_VERSION
36
37   template class basic_istream<char>;
38   template istream& ws(istream&);
39   template istream& operator>>(istream&, char&);
40   template istream& operator>>(istream&, unsigned char&);
41   template istream& operator>>(istream&, signed char&);
42   template istream& operator>>(istream&, char*);
43   template istream& operator>>(istream&, unsigned char*);
44   template istream& operator>>(istream&, signed char*);
45
46   template istream& operator>>(istream&, _Setfill<char>);
47   template istream& operator>>(istream&, _Setiosflags);
48   template istream& operator>>(istream&, _Resetiosflags);
49   template istream& operator>>(istream&, _Setbase);
50   template istream& operator>>(istream&, _Setprecision);
51   template istream& operator>>(istream&, _Setw);
52
53   template istream& istream::_M_extract(unsigned short&);
54   template istream& istream::_M_extract(unsigned int&);  
55   template istream& istream::_M_extract(long&);
56   template istream& istream::_M_extract(unsigned long&);
57   template istream& istream::_M_extract(bool&);
58 #ifdef _GLIBCXX_USE_LONG_LONG
59   template istream& istream::_M_extract(long long&);
60   template istream& istream::_M_extract(unsigned long long&);
61 #endif
62   template istream& istream::_M_extract(float&);
63   template istream& istream::_M_extract(double&);
64   template istream& istream::_M_extract(long double&);
65   template istream& istream::_M_extract(void*&);
66
67 #ifdef _GLIBCXX_USE_WCHAR_T
68   template class basic_istream<wchar_t>;
69   template wistream& ws(wistream&);
70   template wistream& operator>>(wistream&, wchar_t&);
71   template wistream& operator>>(wistream&, wchar_t*);
72
73   template wistream& operator>>(wistream&, _Setfill<wchar_t>);
74   template wistream& operator>>(wistream&, _Setiosflags);
75   template wistream& operator>>(wistream&, _Resetiosflags);
76   template wistream& operator>>(wistream&, _Setbase);
77   template wistream& operator>>(wistream&, _Setprecision);
78   template wistream& operator>>(wistream&, _Setw);
79
80   template wistream& wistream::_M_extract(unsigned short&);
81   template wistream& wistream::_M_extract(unsigned int&);  
82   template wistream& wistream::_M_extract(long&);
83   template wistream& wistream::_M_extract(unsigned long&);
84   template wistream& wistream::_M_extract(bool&);
85 #ifdef _GLIBCXX_USE_LONG_LONG
86   template wistream& wistream::_M_extract(long long&);
87   template wistream& wistream::_M_extract(unsigned long long&);
88 #endif
89   template wistream& wistream::_M_extract(float&);
90   template wistream& wistream::_M_extract(double&);
91   template wistream& wistream::_M_extract(long double&);
92   template wistream& wistream::_M_extract(void*&);
93 #endif
94
95 _GLIBCXX_END_NAMESPACE_VERSION
96 } // namespace
97
98 // XXX GLIBCXX_ABI Deprecated
99 #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
100
101 #define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
102   extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
103 _GLIBCXX_LDBL_COMPAT (_ZNSirsERd, _ZNSirsERe);
104 #ifdef _GLIBCXX_USE_WCHAR_T
105 _GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEErsERd,
106                       _ZNSt13basic_istreamIwSt11char_traitsIwEErsERe);
107 #endif
108 _GLIBCXX_LDBL_COMPAT (_ZNSi10_M_extractIdEERSiRT_,
109                       _ZNSi10_M_extractIeEERSiRT_);
110 #ifdef _GLIBCXX_USE_WCHAR_T
111 _GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIdEERS2_RT_,
112                       _ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIeEERS2_RT_);
113 #endif
114
115 #endif // _GLIBCXX_LONG_DOUBLE_COMPAT