libstdc++
|
00001 // <vstring.h> Forward declarations -*- C++ -*- 00002 00003 // Copyright (C) 2005-2013 Free Software Foundation, Inc. 00004 // 00005 // This file is part of the GNU ISO C++ Library. This library is free 00006 // software; you can redistribute it and/or modify it under the 00007 // terms of the GNU General Public License as published by the 00008 // Free Software Foundation; either version 3, or (at your option) 00009 // any later version. 00010 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 00016 // Under Section 7 of GPL version 3, you are granted additional 00017 // permissions described in the GCC Runtime Library Exception, version 00018 // 3.1, as published by the Free Software Foundation. 00019 00020 // You should have received a copy of the GNU General Public License and 00021 // a copy of the GCC Runtime Library Exception along with this program; 00022 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 00023 // <http://www.gnu.org/licenses/>. 00024 00025 /** @file ext/vstring_fwd.h 00026 * This is an internal header file, included by other library headers. 00027 * Do not attempt to use it directly. @headername{ext/vstring.h} 00028 */ 00029 00030 #ifndef _VSTRING_FWD_H 00031 #define _VSTRING_FWD_H 1 00032 00033 #pragma GCC system_header 00034 00035 #include <bits/c++config.h> 00036 #include <bits/char_traits.h> 00037 #include <bits/allocator.h> 00038 00039 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) 00040 { 00041 _GLIBCXX_BEGIN_NAMESPACE_VERSION 00042 00043 template<typename _CharT, typename _Traits, typename _Alloc> 00044 class __sso_string_base; 00045 00046 template<typename _CharT, typename _Traits, typename _Alloc> 00047 class __rc_string_base; 00048 00049 template<typename _CharT, typename _Traits = std::char_traits<_CharT>, 00050 typename _Alloc = std::allocator<_CharT>, 00051 template 00052 <typename, typename, typename> class _Base = __sso_string_base> 00053 class __versa_string; 00054 00055 typedef __versa_string<char> __vstring; 00056 typedef __vstring __sso_string; 00057 typedef 00058 __versa_string<char, std::char_traits<char>, 00059 std::allocator<char>, __rc_string_base> __rc_string; 00060 00061 #ifdef _GLIBCXX_USE_WCHAR_T 00062 typedef __versa_string<wchar_t> __wvstring; 00063 typedef __wvstring __wsso_string; 00064 typedef 00065 __versa_string<wchar_t, std::char_traits<wchar_t>, 00066 std::allocator<wchar_t>, __rc_string_base> __wrc_string; 00067 #endif 00068 00069 #if ((__cplusplus >= 201103L) \ 00070 && defined(_GLIBCXX_USE_C99_STDINT_TR1)) 00071 00072 typedef __versa_string<char16_t> __u16vstring; 00073 typedef __u16vstring __u16sso_string; 00074 typedef 00075 __versa_string<char16_t, std::char_traits<char16_t>, 00076 std::allocator<char16_t>, __rc_string_base> __u16rc_string; 00077 00078 typedef __versa_string<char32_t> __u32vstring; 00079 typedef __u32vstring __u32sso_string; 00080 typedef 00081 __versa_string<char32_t, std::char_traits<char32_t>, 00082 std::allocator<char32_t>, __rc_string_base> __u32rc_string; 00083 00084 #endif 00085 00086 _GLIBCXX_END_NAMESPACE_VERSION 00087 } // namespace 00088 00089 #endif /* _VSTRING_FWD_H */