xref: /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++17/string-inst.cc (revision 4c3eb207d36f67d31994830c0a694161fc1ca39b)
1627f7eb2Smrg // string instantiations for C++17 -*- C++ -*-
2627f7eb2Smrg 
3*4c3eb207Smrg // Copyright (C) 2019-2020 Free Software Foundation, Inc.
4627f7eb2Smrg //
5627f7eb2Smrg // This file is part of the GNU ISO C++ Library.  This library is free
6627f7eb2Smrg // software; you can redistribute it and/or modify it under the
7627f7eb2Smrg // terms of the GNU General Public License as published by the
8627f7eb2Smrg // Free Software Foundation; either version 3, or (at your option)
9627f7eb2Smrg // any later version.
10627f7eb2Smrg 
11627f7eb2Smrg // This library is distributed in the hope that it will be useful,
12627f7eb2Smrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
13627f7eb2Smrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14627f7eb2Smrg // GNU General Public License for more details.
15627f7eb2Smrg 
16627f7eb2Smrg // Under Section 7 of GPL version 3, you are granted additional
17627f7eb2Smrg // permissions described in the GCC Runtime Library Exception, version
18627f7eb2Smrg // 3.1, as published by the Free Software Foundation.
19627f7eb2Smrg 
20627f7eb2Smrg // You should have received a copy of the GNU General Public License and
21627f7eb2Smrg // a copy of the GCC Runtime Library Exception along with this program;
22627f7eb2Smrg // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23627f7eb2Smrg // <http://www.gnu.org/licenses/>.
24627f7eb2Smrg 
25627f7eb2Smrg //
26627f7eb2Smrg // ISO C++ 14882:2017 24  Strings library
27627f7eb2Smrg //
28627f7eb2Smrg 
29627f7eb2Smrg #ifndef _GLIBCXX_USE_CXX11_ABI
30627f7eb2Smrg // Instantiations in this file use the new SSO std::string ABI unless included
31627f7eb2Smrg // by another file which defines _GLIBCXX_USE_CXX11_ABI=0.
32627f7eb2Smrg # define _GLIBCXX_USE_CXX11_ABI 1
33627f7eb2Smrg #endif
34627f7eb2Smrg 
35627f7eb2Smrg #include <string>
36627f7eb2Smrg 
37627f7eb2Smrg namespace std _GLIBCXX_VISIBILITY(default)
38627f7eb2Smrg {
39627f7eb2Smrg _GLIBCXX_BEGIN_NAMESPACE_VERSION
40627f7eb2Smrg 
41627f7eb2Smrg template basic_string<char>::basic_string(__sv_wrapper, const allocator_type&);
42627f7eb2Smrg template basic_string<char>::__sv_wrapper::__sv_wrapper(string_view);
43627f7eb2Smrg template string_view basic_string<char>::_S_to_string_view(string_view);
44627f7eb2Smrg template basic_string<char>::operator string_view() const noexcept;
45627f7eb2Smrg template char* basic_string<char>::data() noexcept;
46627f7eb2Smrg 
47627f7eb2Smrg #ifdef _GLIBCXX_USE_WCHAR_T
48627f7eb2Smrg template basic_string<wchar_t>::basic_string(__sv_wrapper, const allocator_type&);
49627f7eb2Smrg template basic_string<wchar_t>::__sv_wrapper::__sv_wrapper(wstring_view);
50627f7eb2Smrg template wstring_view basic_string<wchar_t>::_S_to_string_view(wstring_view);
51627f7eb2Smrg template basic_string<wchar_t>::operator wstring_view() const noexcept;
52627f7eb2Smrg template wchar_t* basic_string<wchar_t>::data() noexcept;
53627f7eb2Smrg #endif
54627f7eb2Smrg 
55627f7eb2Smrg _GLIBCXX_END_NAMESPACE_VERSION
56627f7eb2Smrg } // namespace std
57