1 // Explicit instantantiations for monetary facets -*- C++ -*-
2 
3 // Copyright (C) 2018-2021 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 #ifndef C
26 #define "This file should not be compiled directly, only included"
27 #endif
28 
29 // This header is included multiple times, to instantiate these symbols
30 // for char/wchar_t and for both std::string ABIs,
31 // and (depending on the target) for two long double formats.
32 
_GLIBCXX_VISIBILITY(default)33 namespace std _GLIBCXX_VISIBILITY(default)
34 {
35   template const money_put<C>& use_facet<money_put<C> >(const locale&);
36   template const money_get<C>& use_facet<money_get<C> >(const locale&);
37 
38   template bool has_facet<money_put<C> >(const locale&);
39   template bool has_facet<money_get<C> >(const locale&);
40 
41 _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11
42   template class money_get<C, istreambuf_iterator<C> >;
43   template class money_put<C, ostreambuf_iterator<C> >;
44 
45   template
46     istreambuf_iterator<C>
47     money_get<C, istreambuf_iterator<C> >::
48     _M_extract<true>(istreambuf_iterator<C>, istreambuf_iterator<C>,
49 		     ios_base&, ios_base::iostate&, string&) const;
50 
51   template
52     istreambuf_iterator<C>
53     money_get<C, istreambuf_iterator<C> >::
54     _M_extract<false>(istreambuf_iterator<C>, istreambuf_iterator<C>,
55 		      ios_base&, ios_base::iostate&, string&) const;
56 
57   template
58     ostreambuf_iterator<C>
59     money_put<C, ostreambuf_iterator<C> >::
60     _M_insert<true>(ostreambuf_iterator<C>, ios_base&, C,
61 		    const string_type&) const;
62 
63   template
64     ostreambuf_iterator<C>
65     money_put<C, ostreambuf_iterator<C> >::
66     _M_insert<false>(ostreambuf_iterator<C>, ios_base&, C,
67 		     const string_type&) const;
68 _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11
69 } // namespace std
70