# stringfwd.h

Go to the documentation of this file.

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