stringfwd.h revision 107606
1162432Spjd// String support -*- C++ -*-
2162432Spjd
3162432Spjd// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4293436Sngie//
5293436Sngie// This file is part of the GNU ISO C++ Library.  This library is free
6162432Spjd// software; you can redistribute it and/or modify it under the
7162432Spjd// terms of the GNU General Public License as published by the
8293436Sngie// Free Software Foundation; either version 2, or (at your option)
9162432Spjd// any later version.
10162432Spjd
11162432Spjd// This library is distributed in the hope that it will be useful,
12162432Spjd// but WITHOUT ANY WARRANTY; without even the implied warranty of
13162432Spjd// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14162432Spjd// GNU General Public License for more details.
15182452Spjd
16162432Spjd// You should have received a copy of the GNU General Public License along
17162432Spjd// with this library; see the file COPYING.  If not, write to the Free
18162432Spjd// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19162432Spjd// USA.
20162432Spjd
21162432Spjd// As a special exception, you may use this file as part of a free software
22162432Spjd// library without restriction.  Specifically, if other files instantiate
23162432Spjd// templates or use macros or inline functions from this file, or you compile
24162432Spjd// this file and link it with other files to produce an executable, this
25162432Spjd// file does not by itself cause the resulting executable to be covered by
26162432Spjd// the GNU General Public License.  This exception does not however
27162432Spjd// invalidate any other reasons why the executable file might be covered by
28162432Spjd// the GNU General Public License.
29162432Spjd
30162432Spjd//
31162432Spjd// ISO C++ 14882: 21 Strings library
32162432Spjd//
33162432Spjd
34162432Spjd/** @file stringfwd.h
35162432Spjd *  This is an internal header file, included by other library headers.
36162432Spjd *  You should not attempt to use it directly.
37162432Spjd */
38162432Spjd
39162432Spjd#ifndef _CPP_BITS_STRINGFWD_H
40162432Spjd#define _CPP_BITS_STRINGFWD_H	1
41162432Spjd
42162432Spjd#pragma GCC system_header
43162432Spjd
44162432Spjd#include <bits/c++config.h>
45162432Spjd
46162432Spjdnamespace std
47162432Spjd{
48162432Spjd  template<typename _Alloc>
49162432Spjd    class allocator;
50162432Spjd
51162432Spjd  template<class _CharT>
52162432Spjd    struct char_traits;
53162432Spjd
54162432Spjd  template<typename _CharT, typename _Traits = char_traits<_CharT>,
55162432Spjd           typename _Alloc = allocator<_CharT> >
56162432Spjd    class basic_string;
57162432Spjd
58162432Spjd  template<> struct char_traits<char>;
59162432Spjd
60162432Spjd  typedef basic_string<char>    string;
61162432Spjd
62162432Spjd#ifdef _GLIBCPP_USE_WCHAR_T
63162432Spjd  template<> struct char_traits<wchar_t>;
64162432Spjd
65162432Spjd  typedef basic_string<wchar_t> wstring;
66162432Spjd#endif
67162432Spjd} // namespace std
68162432Spjd
69162432Spjd#endif	// _CPP_BITS_STRINGFWD_H
70162432Spjd