OSDN Git Service

d2af9e19f01c35d2bfea2ae8765bae9aa58b2fef
[pf3gnuchains/gcc-fork.git] / libstdc++ / stl / stl_string_fwd.h
1 /*
2  * Copyright (c) 1997
3  * Silicon Graphics Computer Systems, Inc.
4  *
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  */ 
13
14 #ifndef __SGI_STL_STRING_FWD_H
15 #define __SGI_STL_STRING_FWD_H
16
17 #include <stddef.h>
18
19 __STL_BEGIN_NAMESPACE
20
21 #ifdef __STL_USE_STD_ALLOCATORS
22
23 template <class _Tp> class allocator;
24
25 #else /* __STL_USE_STD_ALLOCATORS */
26
27 template <bool __threads, int __inst> class _Default_alloc_template;
28 typedef _Default_alloc_template<true, 0> _Alloc;
29
30 #endif /* __STL_USE_STD_ALLOCATORS */
31
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;
37
38 typedef basic_string<char> string;
39 typedef basic_string<wchar_t> wstring;
40
41 template <class _CharT, class _Traits, class _Alloc>
42 void _S_string_copy(const basic_string<_CharT,_Traits,_Alloc>&, _CharT*, 
43                     size_t);
44
45 __STL_END_NAMESPACE
46
47 #endif /* __SGI_STL_STRING_FWD_H */
48
49 // Local Variables:
50 // mode:C++
51 // End: