This commit was manufactured by cvs2svn to create branch 'SGI'.
[official-gcc.git] / libstdc++ / stl / stl_string_fwd.h
blobd2af9e19f01c35d2bfea2ae8765bae9aa58b2fef
1 /*
2 * Copyright (c) 1997
3 * Silicon Graphics Computer Systems, Inc.
5 * Permission to use, copy, modify, distribute and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appear in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation. Silicon Graphics makes no
10 * representations about the suitability of this software for any
11 * purpose. It is provided "as is" without express or implied warranty.
12 */
14 #ifndef __SGI_STL_STRING_FWD_H
15 #define __SGI_STL_STRING_FWD_H
17 #include <stddef.h>
19 __STL_BEGIN_NAMESPACE
21 #ifdef __STL_USE_STD_ALLOCATORS
23 template <class _Tp> class allocator;
25 #else /* __STL_USE_STD_ALLOCATORS */
27 template <bool __threads, int __inst> class _Default_alloc_template;
28 typedef _Default_alloc_template<true, 0> _Alloc;
30 #endif /* __STL_USE_STD_ALLOCATORS */
32 template <class _CharT> struct char_traits;
33 template <class _CharT,
34 class _Traits = char_traits<_CharT>,
35 class _Alloc = __STL_DEFAULT_ALLOCATOR(_CharT) >
36 class basic_string;
38 typedef basic_string<char> string;
39 typedef basic_string<wchar_t> wstring;
41 template <class _CharT, class _Traits, class _Alloc>
42 void _S_string_copy(const basic_string<_CharT,_Traits,_Alloc>&, _CharT*,
43 size_t);
45 __STL_END_NAMESPACE
47 #endif /* __SGI_STL_STRING_FWD_H */
49 // Local Variables:
50 // mode:C++
51 // End: