1271546Sian// Versatile string forward -*- C++ -*-
2271546Sian
3271546Sian// Copyright (C) 2005 Free Software Foundation, Inc.
4271546Sian//
5271546Sian// This file is part of the GNU ISO C++ Library.  This library is free
6271546Sian// software; you can redistribute it and/or modify it under the
7271546Sian// terms of the GNU General Public License as published by the
8271546Sian// Free Software Foundation; either version 2, or (at your option)
9271546Sian// any later version.
10271546Sian
11271546Sian// This library is distributed in the hope that it will be useful,
12271546Sian// but WITHOUT ANY WARRANTY; without even the implied warranty of
13271546Sian// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14271546Sian// GNU General Public License for more details.
15271546Sian
16271546Sian// You should have received a copy of the GNU General Public License along
17271546Sian// with this library; see the file COPYING.  If not, write to the Free
18271546Sian// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19271546Sian// USA.
20271546Sian
21271546Sian// As a special exception, you may use this file as part of a free software
22271546Sian// library without restriction.  Specifically, if other files instantiate
23271546Sian// templates or use macros or inline functions from this file, or you compile
24271546Sian// this file and link it with other files to produce an executable, this
25271546Sian// file does not by itself cause the resulting executable to be covered by
26271546Sian// the GNU General Public License.  This exception does not however
27271546Sian// invalidate any other reasons why the executable file might be covered by
28271546Sian// the GNU General Public License.
29271546Sian
30271546Sian/** @file ext/vstring_fwd.h
31271546Sian *  This file is a GNU extension to the Standard C++ Library.
32271546Sian *  This is an internal header file, included by other library headers.
33271546Sian *  You should not attempt to use it directly.
34271546Sian */
35271546Sian
36271546Sian#ifndef _VSTRING_FWD_H
37271546Sian#define _VSTRING_FWD_H 1
38271546Sian
39271546Sian#pragma GCC system_header
40271546Sian
41271546Sian#include <bits/c++config.h>
42271546Sian#include <bits/char_traits.h>
43271546Sian#include <memory> 	// For allocator.
44271546Sian
45271546Sian_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
46271546Sian
47271546Sian  template<typename _CharT, typename _Traits, typename _Alloc>
48271546Sian    class __sso_string_base;
49271546Sian
50271546Sian  template<typename _CharT, typename _Traits, typename _Alloc>
51271546Sian    class __rc_string_base;
52271546Sian
53271546Sian  template<typename _CharT, typename _Traits = std::char_traits<_CharT>,
54271546Sian           typename _Alloc = std::allocator<_CharT>,
55271546Sian	   template
56271546Sian	   <typename, typename, typename> class _Base = __sso_string_base>
57271546Sian    class __versa_string;
58271546Sian
59  typedef __versa_string<char>                              __vstring;
60  typedef __vstring                                         __sso_string;
61  typedef
62  __versa_string<char, std::char_traits<char>,
63		 std::allocator<char>, __rc_string_base>    __rc_string;
64
65#ifdef _GLIBCXX_USE_WCHAR_T
66  typedef __versa_string<wchar_t>                           __wvstring;
67  typedef __wvstring                                        __wsso_string;
68  typedef
69  __versa_string<wchar_t, std::char_traits<wchar_t>,
70		 std::allocator<wchar_t>, __rc_string_base> __wrc_string;
71#endif
72
73_GLIBCXX_END_NAMESPACE
74
75#endif /* _VSTRING_FWD_H */
76