00001 // String support -*- C++ -*- 00002 00003 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 00004 // 2010 00005 // Free Software Foundation, Inc. 00006 // 00007 // This file is part of the GNU ISO C++ Library. This library is free 00008 // software; you can redistribute it and/or modify it under the 00009 // terms of the GNU General Public License as published by the 00010 // Free Software Foundation; either version 3, or (at your option) 00011 // any later version. 00012 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 00018 // Under Section 7 of GPL version 3, you are granted additional 00019 // permissions described in the GCC Runtime Library Exception, version 00020 // 3.1, as published by the Free Software Foundation. 00021 00022 // You should have received a copy of the GNU General Public License and 00023 // a copy of the GCC Runtime Library Exception along with this program; 00024 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 00025 // <http://www.gnu.org/licenses/>. 00026 00027 /** @file stringfwd.h 00028 * This is an internal header file, included by other library headers. 00029 * You should not attempt to use it directly. 00030 */ 00031 00032 // 00033 // ISO C++ 14882: 21 Strings library 00034 // 00035 00036 #ifndef _STRINGFWD_H 00037 #define _STRINGFWD_H 1 00038 00039 #pragma GCC system_header 00040 00041 #include <bits/c++config.h> 00042 00043 _GLIBCXX_BEGIN_NAMESPACE(std) 00044 00045 template<typename _Alloc> 00046 class allocator; 00047 00048 /** 00049 * @defgroup strings Strings 00050 * 00051 * @{ 00052 */ 00053 00054 template<class _CharT> 00055 struct char_traits; 00056 00057 template<typename _CharT, typename _Traits = char_traits<_CharT>, 00058 typename _Alloc = allocator<_CharT> > 00059 class basic_string; 00060 00061 template<> struct char_traits<char>; 00062 00063 typedef basic_string<char> string; ///< A string of @c char 00064 00065 #ifdef _GLIBCXX_USE_WCHAR_T 00066 template<> struct char_traits<wchar_t>; 00067 00068 typedef basic_string<wchar_t> wstring; ///< A string of @c wchar_t 00069 #endif 00070 00071 #if (defined(__GXX_EXPERIMENTAL_CXX0X__) \ 00072 && defined(_GLIBCXX_USE_C99_STDINT_TR1)) 00073 00074 template<> struct char_traits<char16_t>; 00075 template<> struct char_traits<char32_t>; 00076 00077 typedef basic_string<char16_t> u16string; ///< A string of @c char16_t 00078 typedef basic_string<char32_t> u32string; ///< A string of @c char32_t 00079 00080 #endif 00081 /** @} */ 00082 00083 _GLIBCXX_END_NAMESPACE 00084 00085 #endif // _STRINGFWD_H