1169691Skan// Versatile string forward -*- C++ -*- 2169691Skan 3169691Skan// Copyright (C) 2005 Free Software Foundation, Inc. 4169691Skan// 5169691Skan// This file is part of the GNU ISO C++ Library. This library is free 6169691Skan// software; you can redistribute it and/or modify it under the 7169691Skan// terms of the GNU General Public License as published by the 8169691Skan// Free Software Foundation; either version 2, or (at your option) 9169691Skan// any later version. 10169691Skan 11169691Skan// This library is distributed in the hope that it will be useful, 12169691Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of 13169691Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14169691Skan// GNU General Public License for more details. 15169691Skan 16169691Skan// You should have received a copy of the GNU General Public License along 17169691Skan// with this library; see the file COPYING. If not, write to the Free 18169691Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 19169691Skan// USA. 20169691Skan 21169691Skan// As a special exception, you may use this file as part of a free software 22169691Skan// library without restriction. Specifically, if other files instantiate 23169691Skan// templates or use macros or inline functions from this file, or you compile 24169691Skan// this file and link it with other files to produce an executable, this 25169691Skan// file does not by itself cause the resulting executable to be covered by 26169691Skan// the GNU General Public License. This exception does not however 27169691Skan// invalidate any other reasons why the executable file might be covered by 28169691Skan// the GNU General Public License. 29169691Skan 30169691Skan/** @file ext/vstring_fwd.h 31169691Skan * This file is a GNU extension to the Standard C++ Library. 32169691Skan * This is an internal header file, included by other library headers. 33169691Skan * You should not attempt to use it directly. 34169691Skan */ 35169691Skan 36169691Skan#ifndef _VSTRING_FWD_H 37169691Skan#define _VSTRING_FWD_H 1 38169691Skan 39169691Skan#pragma GCC system_header 40169691Skan 41169691Skan#include <bits/c++config.h> 42169691Skan#include <bits/char_traits.h> 43169691Skan#include <memory> // For allocator. 44169691Skan 45169691Skan_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) 46169691Skan 47169691Skan template<typename _CharT, typename _Traits, typename _Alloc> 48169691Skan class __sso_string_base; 49169691Skan 50169691Skan template<typename _CharT, typename _Traits, typename _Alloc> 51169691Skan class __rc_string_base; 52169691Skan 53169691Skan template<typename _CharT, typename _Traits = std::char_traits<_CharT>, 54169691Skan typename _Alloc = std::allocator<_CharT>, 55169691Skan template 56169691Skan <typename, typename, typename> class _Base = __sso_string_base> 57169691Skan class __versa_string; 58169691Skan 59169691Skan typedef __versa_string<char> __vstring; 60169691Skan typedef __vstring __sso_string; 61169691Skan typedef 62169691Skan __versa_string<char, std::char_traits<char>, 63169691Skan std::allocator<char>, __rc_string_base> __rc_string; 64169691Skan 65169691Skan#ifdef _GLIBCXX_USE_WCHAR_T 66169691Skan typedef __versa_string<wchar_t> __wvstring; 67169691Skan typedef __wvstring __wsso_string; 68169691Skan typedef 69169691Skan __versa_string<wchar_t, std::char_traits<wchar_t>, 70169691Skan std::allocator<wchar_t>, __rc_string_base> __wrc_string; 71169691Skan#endif 72169691Skan 73169691Skan_GLIBCXX_END_NAMESPACE 74169691Skan 75169691Skan#endif /* _VSTRING_FWD_H */ 76