| 1 |
// Explicit instantiation file. |
| 2 |
|
| 3 |
// Copyright (C) 1997-2025 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 3, 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 |
// Under Section 7 of GPL version 3, you are granted additional |
| 17 |
// permissions described in the GCC Runtime Library Exception, version |
| 18 |
// 3.1, as published by the Free Software Foundation. |
| 19 |
|
| 20 |
// You should have received a copy of the GNU General Public License and |
| 21 |
// a copy of the GCC Runtime Library Exception along with this program; |
| 22 |
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
| 23 |
// <http://www.gnu.org/licenses/>. |
| 24 |
|
| 25 |
// |
| 26 |
// ISO C++ 14882: |
| 27 |
// |
| 28 |
|
| 29 |
#include <istream> |
| 30 |
#include <iomanip> |
| 31 |
|
| 32 |
namespace std _GLIBCXX_VISIBILITY(default) |
| 33 |
{ |
| 34 |
_GLIBCXX_BEGIN_NAMESPACE_VERSION |
| 35 |
|
| 36 |
template class basic_istream<char>; |
| 37 |
template istream& ws(istream&); |
| 38 |
template istream& operator>>(istream&, char&); |
| 39 |
template istream& operator>>(istream&, unsigned char&); |
| 40 |
template istream& operator>>(istream&, signed char&); |
| 41 |
|
| 42 |
#if ! _GLIBCXX_INLINE_VERSION |
| 43 |
// XXX GLIBCXX_ABI Deprecated |
| 44 |
template istream& operator>>(istream&, char*); |
| 45 |
template istream& operator>>(istream&, unsigned char*); |
| 46 |
template istream& operator>>(istream&, signed char*); |
| 47 |
#endif |
| 48 |
|
| 49 |
template istream& operator>>(istream&, _Setfill<char>); |
| 50 |
template istream& operator>>(istream&, _Setiosflags); |
| 51 |
template istream& operator>>(istream&, _Resetiosflags); |
| 52 |
template istream& operator>>(istream&, _Setbase); |
| 53 |
template istream& operator>>(istream&, _Setprecision); |
| 54 |
template istream& operator>>(istream&, _Setw); |
| 55 |
|
| 56 |
template istream& istream::_M_extract(unsigned short&); |
| 57 |
template istream& istream::_M_extract(unsigned int&); |
| 58 |
template istream& istream::_M_extract(long&); |
| 59 |
template istream& istream::_M_extract(unsigned long&); |
| 60 |
template istream& istream::_M_extract(bool&); |
| 61 |
#ifdef _GLIBCXX_USE_LONG_LONG |
| 62 |
template istream& istream::_M_extract(long long&); |
| 63 |
template istream& istream::_M_extract(unsigned long long&); |
| 64 |
#endif |
| 65 |
template istream& istream::_M_extract(float&); |
| 66 |
template istream& istream::_M_extract(double&); |
| 67 |
template istream& istream::_M_extract(long double&); |
| 68 |
template istream& istream::_M_extract(void*&); |
| 69 |
|
| 70 |
#ifdef _GLIBCXX_USE_WCHAR_T |
| 71 |
template class basic_istream<wchar_t>; |
| 72 |
template wistream& ws(wistream&); |
| 73 |
template wistream& operator>>(wistream&, wchar_t&); |
| 74 |
template void __istream_extract(wistream&, wchar_t*, streamsize); |
| 75 |
|
| 76 |
#if ! _GLIBCXX_INLINE_VERSION |
| 77 |
// XXX GLIBCXX_ABI Deprecated |
| 78 |
template wistream& operator>>(wistream&, wchar_t*); |
| 79 |
#endif |
| 80 |
|
| 81 |
template wistream& operator>>(wistream&, _Setfill<wchar_t>); |
| 82 |
template wistream& operator>>(wistream&, _Setiosflags); |
| 83 |
template wistream& operator>>(wistream&, _Resetiosflags); |
| 84 |
template wistream& operator>>(wistream&, _Setbase); |
| 85 |
template wistream& operator>>(wistream&, _Setprecision); |
| 86 |
template wistream& operator>>(wistream&, _Setw); |
| 87 |
|
| 88 |
template wistream& wistream::_M_extract(unsigned short&); |
| 89 |
template wistream& wistream::_M_extract(unsigned int&); |
| 90 |
template wistream& wistream::_M_extract(long&); |
| 91 |
template wistream& wistream::_M_extract(unsigned long&); |
| 92 |
template wistream& wistream::_M_extract(bool&); |
| 93 |
#ifdef _GLIBCXX_USE_LONG_LONG |
| 94 |
template wistream& wistream::_M_extract(long long&); |
| 95 |
template wistream& wistream::_M_extract(unsigned long long&); |
| 96 |
#endif |
| 97 |
template wistream& wistream::_M_extract(float&); |
| 98 |
template wistream& wistream::_M_extract(double&); |
| 99 |
template wistream& wistream::_M_extract(long double&); |
| 100 |
template wistream& wistream::_M_extract(void*&); |
| 101 |
#endif |
| 102 |
|
| 103 |
_GLIBCXX_END_NAMESPACE_VERSION |
| 104 |
} // namespace |
| 105 |
|
| 106 |
// XXX GLIBCXX_ABI Deprecated |
| 107 |
#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT |
| 108 |
|
| 109 |
#pragma GCC diagnostic ignored "-Wattribute-alias" |
| 110 |
|
| 111 |
#define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \ |
| 112 |
extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak)) |
| 113 |
_GLIBCXX_LDBL_COMPAT (_ZNSirsERd, _ZNSirsERe); |
| 114 |
#ifdef _GLIBCXX_USE_WCHAR_T |
| 115 |
_GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEErsERd, |
| 116 |
_ZNSt13basic_istreamIwSt11char_traitsIwEErsERe); |
| 117 |
#endif |
| 118 |
_GLIBCXX_LDBL_COMPAT (_ZNSi10_M_extractIdEERSiRT_, |
| 119 |
_ZNSi10_M_extractIeEERSiRT_); |
| 120 |
#ifdef _GLIBCXX_USE_WCHAR_T |
| 121 |
_GLIBCXX_LDBL_COMPAT (_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIdEERS2_RT_, |
| 122 |
_ZNSt13basic_istreamIwSt11char_traitsIwEE10_M_extractIeEERS2_RT_); |
| 123 |
#endif |
| 124 |
|
| 125 |
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT |