libstdc++
|
00001 // Versatile string forward -*- C++ -*- 00002 00003 // Copyright (C) 2005, 2006, 2007, 2008, 2009 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 file is a GNU extension to the Standard C++ Library. 00027 * This is an internal header file, included by other library headers. 00028 * You should not attempt to use it directly. 00029 */ 00030 00031 #ifndef _VSTRING_FWD_H 00032 #define _VSTRING_FWD_H 1 00033 00034 #pragma GCC system_header 00035 00036 #include <bits/c++config.h> 00037 #include <bits/char_traits.h> 00038 #include <bits/allocator.h> 00039 00040 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) 00041 00042 template<typename _CharT, typename _Traits, typename _Alloc> 00043 class __sso_string_base; 00044 00045 template<typename _CharT, typename _Traits, typename _Alloc> 00046 class __rc_string_base; 00047 00048 template<typename _CharT, typename _Traits = std::char_traits<_CharT>, 00049 typename _Alloc = std::allocator<_CharT>, 00050 template 00051 <typename, typename, typename> class _Base = __sso_string_base> 00052 class __versa_string; 00053 00054 typedef __versa_string<char> __vstring; 00055 typedef __vstring __sso_string; 00056 typedef 00057 __versa_string<char, std::char_traits<char>, 00058 std::allocator<char>, __rc_string_base> __rc_string; 00059 00060 #ifdef _GLIBCXX_USE_WCHAR_T 00061 typedef __versa_string<wchar_t> __wvstring; 00062 typedef __wvstring __wsso_string; 00063 typedef 00064 __versa_string<wchar_t, std::char_traits<wchar_t>, 00065 std::allocator<wchar_t>, __rc_string_base> __wrc_string; 00066 #endif 00067 00068 #if (defined(__GXX_EXPERIMENTAL_CXX0X__) \ 00069 && defined(_GLIBCXX_USE_C99_STDINT_TR1)) 00070 00071 typedef __versa_string<char16_t> __u16vstring; 00072 typedef __u16vstring __u16sso_string; 00073 typedef 00074 __versa_string<char16_t, std::char_traits<char16_t>, 00075 std::allocator<char16_t>, __rc_string_base> __u16rc_string; 00076 00077 typedef __versa_string<char32_t> __u32vstring; 00078 typedef __u32vstring __u32sso_string; 00079 typedef 00080 __versa_string<char32_t, std::char_traits<char32_t>, 00081 std::allocator<char32_t>, __rc_string_base> __u32rc_string; 00082 00083 #endif 00084 00085 _GLIBCXX_END_NAMESPACE 00086 00087 #endif /* _VSTRING_FWD_H */