]>
Commit | Line | Data |
---|---|---|
b2dad0e3 BK |
1 | // Explicit instantiation file. |
2 | ||
99dee823 | 3 | // Copyright (C) 1997-2021 Free Software Foundation, Inc. |
b2dad0e3 BK |
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 | |
748086b7 | 8 | // Free Software Foundation; either version 3, or (at your option) |
b2dad0e3 BK |
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 | ||
748086b7 JJ |
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. | |
b2dad0e3 | 19 | |
748086b7 JJ |
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/>. | |
b2dad0e3 BK |
24 | |
25 | // | |
26 | // ISO C++ 14882: | |
27 | // | |
28 | ||
34a2b755 JW |
29 | #define _GLIBCXX_USE_CXX11_ABI 1 |
30 | #define _GLIBCXX_DISAMBIGUATE_REPLACE_INST 1 | |
54c1bf78 | 31 | #include <string> |
54c1bf78 BK |
32 | #include <istream> |
33 | #include <ostream> | |
b2dad0e3 | 34 | |
12ffa228 BK |
35 | namespace std _GLIBCXX_VISIBILITY(default) |
36 | { | |
37 | _GLIBCXX_BEGIN_NAMESPACE_VERSION | |
3cbc7af0 | 38 | |
34a2b755 JW |
39 | #if _GLIBCXX_USE_CXX11_ABI |
40 | // C++98 members that are not instantiated by src/c++11/string-inst.cc | |
41 | // because they changed in C++11 to take const_iterator parameters. | |
42 | template string::iterator string::erase(iterator); | |
e4dd5b69 BE |
43 | template string::iterator string::erase(iterator, iterator); |
44 | template void string::insert(iterator, size_type, char); | |
34a2b755 JW |
45 | template void string::insert(iterator, iterator, iterator); |
46 | template string::iterator string::insert(iterator, char); | |
e4dd5b69 BE |
47 | template string& string::replace(iterator, iterator, const string&); |
48 | template string& | |
49 | string::replace(iterator, iterator, const char*, size_type); | |
50 | template string& string::replace(iterator, iterator, const char*); | |
34a2b755 JW |
51 | template string& string::replace(iterator, iterator, size_type, char); |
52 | template string& string::replace(iterator, iterator, char*, char*); | |
e4dd5b69 BE |
53 | template string& |
54 | string::replace(iterator, iterator, const char*, const char*); | |
34a2b755 JW |
55 | template string& string::replace(iterator, iterator, iterator, iterator); |
56 | template string& | |
57 | string::replace(iterator, iterator, const_iterator, const_iterator); | |
58 | ||
59 | #ifdef _GLIBCXX_USE_WCHAR_T | |
60 | template wstring::iterator wstring::erase(iterator); | |
e4dd5b69 BE |
61 | template wstring::iterator wstring::erase(iterator, iterator); |
62 | template void wstring::insert(iterator, size_type, wchar_t); | |
34a2b755 JW |
63 | template void wstring::insert(iterator, iterator, iterator); |
64 | template wstring::iterator wstring::insert(iterator, wchar_t); | |
e4dd5b69 BE |
65 | template wstring& wstring::replace(iterator, iterator, const wstring&); |
66 | template wstring& | |
67 | wstring::replace(iterator, iterator, const wchar_t*, size_type); | |
68 | template wstring& wstring::replace(iterator, iterator, const wchar_t*); | |
34a2b755 JW |
69 | template wstring& wstring::replace(iterator, iterator, size_type, wchar_t); |
70 | template wstring& wstring::replace(iterator, iterator, wchar_t*, wchar_t*); | |
e4dd5b69 BE |
71 | template wstring& |
72 | wstring::replace(iterator, iterator, const wchar_t*, const wchar_t*); | |
34a2b755 JW |
73 | template wstring& wstring::replace(iterator, iterator, iterator, iterator); |
74 | template wstring& | |
75 | wstring::replace(iterator, iterator, const_iterator, const_iterator); | |
76 | #endif | |
77 | ||
78 | // XXX this doesn't belong in an -inst.cc file | |
79 | // Defined in src/c++98/locale_facets.cc | |
80 | _GLIBCXX_PURE bool | |
81 | __verify_grouping_impl(const char* __grouping, size_t __grouping_size, | |
82 | const char* __grouping_tmp, size_t __n); | |
83 | ||
84 | bool | |
85 | __verify_grouping(const char* __grouping, size_t __grouping_size, | |
86 | const string& __grouping_tmp) throw() | |
87 | { | |
88 | return __verify_grouping_impl(__grouping, __grouping_size, | |
89 | __grouping_tmp.c_str(), | |
90 | __grouping_tmp.size()); | |
91 | } | |
92 | #endif | |
93 | ||
12ffa228 BK |
94 | _GLIBCXX_END_NAMESPACE_VERSION |
95 | } // namespace |