_string_fwd.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. #ifndef _STLP_STRING_FWD_H
  19. #define _STLP_STRING_FWD_H
  20. #ifndef _STLP_CHAR_TRAITS_H
  21. # include <stl/char_traits.h>
  22. #endif
  23. _STLP_BEGIN_NAMESPACE
  24. #if !defined (_STLP_LIMITED_DEFAULT_TEMPLATES)
  25. template <class _CharT,
  26. class _Traits = char_traits<_CharT>,
  27. class _Alloc = allocator<_CharT> >
  28. class basic_string;
  29. #else
  30. template <class _CharT,
  31. class _Traits,
  32. class _Alloc>
  33. class basic_string;
  34. #endif /* _STLP_LIMITED_DEFAULT_TEMPLATES */
  35. typedef basic_string<char, char_traits<char>, allocator<char> > string;
  36. #if defined (_STLP_HAS_WCHAR_T)
  37. typedef basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wstring;
  38. #endif
  39. _STLP_MOVE_TO_PRIV_NAMESPACE
  40. //This function limits header dependency between exception and string
  41. //implementation. It is implemented in _string.h
  42. const char* _STLP_CALL __get_c_string(const string& __str);
  43. _STLP_MOVE_TO_STD_NAMESPACE
  44. _STLP_END_NAMESPACE
  45. #endif /* _STLP_STRING_FWD_H */
  46. // Local Variables:
  47. // mode:C++
  48. // End: