11debfc3dSmrg // <string> Forward declarations -*- C++ -*-
21debfc3dSmrg
3*8feb0f0bSmrg // Copyright (C) 2001-2020 Free Software Foundation, Inc.
41debfc3dSmrg //
51debfc3dSmrg // This file is part of the GNU ISO C++ Library. This library is free
61debfc3dSmrg // software; you can redistribute it and/or modify it under the
71debfc3dSmrg // terms of the GNU General Public License as published by the
81debfc3dSmrg // Free Software Foundation; either version 3, or (at your option)
91debfc3dSmrg // any later version.
101debfc3dSmrg
111debfc3dSmrg // This library is distributed in the hope that it will be useful,
121debfc3dSmrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
131debfc3dSmrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
141debfc3dSmrg // GNU General Public License for more details.
151debfc3dSmrg
161debfc3dSmrg // Under Section 7 of GPL version 3, you are granted additional
171debfc3dSmrg // permissions described in the GCC Runtime Library Exception, version
181debfc3dSmrg // 3.1, as published by the Free Software Foundation.
191debfc3dSmrg
201debfc3dSmrg // You should have received a copy of the GNU General Public License and
211debfc3dSmrg // a copy of the GCC Runtime Library Exception along with this program;
221debfc3dSmrg // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
231debfc3dSmrg // <http://www.gnu.org/licenses/>.
241debfc3dSmrg
251debfc3dSmrg /** @file bits/stringfwd.h
261debfc3dSmrg * This is an internal header file, included by other library headers.
271debfc3dSmrg * Do not attempt to use it directly. @headername{string}
281debfc3dSmrg */
291debfc3dSmrg
301debfc3dSmrg //
311debfc3dSmrg // ISO C++ 14882: 21 Strings library
321debfc3dSmrg //
331debfc3dSmrg
341debfc3dSmrg #ifndef _STRINGFWD_H
351debfc3dSmrg #define _STRINGFWD_H 1
361debfc3dSmrg
371debfc3dSmrg #pragma GCC system_header
381debfc3dSmrg
391debfc3dSmrg #include <bits/c++config.h>
401debfc3dSmrg #include <bits/memoryfwd.h>
411debfc3dSmrg
_GLIBCXX_VISIBILITY(default)421debfc3dSmrg namespace std _GLIBCXX_VISIBILITY(default)
431debfc3dSmrg {
441debfc3dSmrg _GLIBCXX_BEGIN_NAMESPACE_VERSION
451debfc3dSmrg
461debfc3dSmrg /**
471debfc3dSmrg * @defgroup strings Strings
481debfc3dSmrg *
491debfc3dSmrg * @{
501debfc3dSmrg */
511debfc3dSmrg
521debfc3dSmrg template<class _CharT>
531debfc3dSmrg struct char_traits;
541debfc3dSmrg
551debfc3dSmrg template<> struct char_traits<char>;
561debfc3dSmrg
571debfc3dSmrg #ifdef _GLIBCXX_USE_WCHAR_T
581debfc3dSmrg template<> struct char_traits<wchar_t>;
591debfc3dSmrg #endif
601debfc3dSmrg
61c0a68be4Smrg #ifdef _GLIBCXX_USE_CHAR8_T
62c0a68be4Smrg template<> struct char_traits<char8_t>;
63c0a68be4Smrg #endif
64c0a68be4Smrg
65c0a68be4Smrg #if __cplusplus >= 201103L
661debfc3dSmrg template<> struct char_traits<char16_t>;
671debfc3dSmrg template<> struct char_traits<char32_t>;
681debfc3dSmrg #endif
691debfc3dSmrg
701debfc3dSmrg _GLIBCXX_BEGIN_NAMESPACE_CXX11
711debfc3dSmrg
721debfc3dSmrg template<typename _CharT, typename _Traits = char_traits<_CharT>,
731debfc3dSmrg typename _Alloc = allocator<_CharT> >
741debfc3dSmrg class basic_string;
751debfc3dSmrg
76c0a68be4Smrg _GLIBCXX_END_NAMESPACE_CXX11
77c0a68be4Smrg
781debfc3dSmrg /// A string of @c char
791debfc3dSmrg typedef basic_string<char> string;
801debfc3dSmrg
811debfc3dSmrg #ifdef _GLIBCXX_USE_WCHAR_T
821debfc3dSmrg /// A string of @c wchar_t
831debfc3dSmrg typedef basic_string<wchar_t> wstring;
841debfc3dSmrg #endif
851debfc3dSmrg
86c0a68be4Smrg #ifdef _GLIBCXX_USE_CHAR8_T
87c0a68be4Smrg /// A string of @c char8_t
88c0a68be4Smrg typedef basic_string<char8_t> u8string;
89c0a68be4Smrg #endif
90c0a68be4Smrg
91c0a68be4Smrg #if __cplusplus >= 201103L
921debfc3dSmrg /// A string of @c char16_t
931debfc3dSmrg typedef basic_string<char16_t> u16string;
941debfc3dSmrg
951debfc3dSmrg /// A string of @c char32_t
961debfc3dSmrg typedef basic_string<char32_t> u32string;
971debfc3dSmrg #endif
981debfc3dSmrg
991debfc3dSmrg /** @} */
1001debfc3dSmrg
1011debfc3dSmrg _GLIBCXX_END_NAMESPACE_VERSION
1021debfc3dSmrg } // namespace std
1031debfc3dSmrg
1041debfc3dSmrg #endif // _STRINGFWD_H
105