1/* 2 * Copyright (c) 1997 3 * Silicon Graphics Computer Systems, Inc. 4 * 5 * Copyright (c) 1999 6 * Boris Fomitchev 7 * 8 * This material is provided "as is", with absolutely no warranty expressed 9 * or implied. Any use is at your own risk. 10 * 11 * Permission to use or copy this software for any purpose is hereby granted 12 * without fee, provided the above notices are retained on all copies. 13 * Permission to modify the code and to distribute modified code is granted, 14 * provided the above notices are retained, and a notice that the code was 15 * modified is included with the above copyright notice. 16 * 17 */ 18 19#ifndef _STLP_STRING_FWD_H 20#define _STLP_STRING_FWD_H 21 22#ifndef _STLP_INTERNAL_IOSFWD 23# include <stl/_iosfwd.h> 24#endif 25 26_STLP_BEGIN_NAMESPACE 27 28#if !defined (_STLP_LIMITED_DEFAULT_TEMPLATES) 29template <class _CharT, 30 class _Traits = char_traits<_CharT>, 31 class _Alloc = allocator<_CharT> > 32class basic_string; 33#else 34template <class _CharT, 35 class _Traits, 36 class _Alloc> 37class basic_string; 38#endif /* _STLP_LIMITED_DEFAULT_TEMPLATES */ 39 40typedef basic_string<char, char_traits<char>, allocator<char> > string; 41 42#if defined (_STLP_HAS_WCHAR_T) 43typedef basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wstring; 44#endif 45 46_STLP_MOVE_TO_PRIV_NAMESPACE 47 48//This function limits header dependency between exception and string 49//implementation. It is implemented in _string.h 50const char* _STLP_CALL __get_c_string(const string& __str); 51 52_STLP_MOVE_TO_STD_NAMESPACE 53 54_STLP_END_NAMESPACE 55 56#endif /* _STLP_STRING_FWD_H */ 57 58// Local Variables: 59// mode:C++ 60// End: 61