sstream.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef _LIBCPP___FWD_SSTREAM_H
  9. #define _LIBCPP___FWD_SSTREAM_H
  10. #include <__config>
  11. #include <__fwd/string.h>
  12. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  13. # pragma GCC system_header
  14. #endif
  15. _LIBCPP_BEGIN_NAMESPACE_STD
  16. template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
  17. class _LIBCPP_TEMPLATE_VIS basic_stringbuf;
  18. template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
  19. class _LIBCPP_TEMPLATE_VIS basic_istringstream;
  20. template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
  21. class _LIBCPP_TEMPLATE_VIS basic_ostringstream;
  22. template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
  23. class _LIBCPP_TEMPLATE_VIS basic_stringstream;
  24. using stringbuf = basic_stringbuf<char>;
  25. using istringstream = basic_istringstream<char>;
  26. using ostringstream = basic_ostringstream<char>;
  27. using stringstream = basic_stringstream<char>;
  28. #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
  29. using wstringbuf = basic_stringbuf<wchar_t>;
  30. using wistringstream = basic_istringstream<wchar_t>;
  31. using wostringstream = basic_ostringstream<wchar_t>;
  32. using wstringstream = basic_stringstream<wchar_t>;
  33. #endif
  34. template <class _CharT, class _Traits, class _Allocator>
  35. class _LIBCPP_PREFERRED_NAME(stringbuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringbuf)) basic_stringbuf;
  36. template <class _CharT, class _Traits, class _Allocator>
  37. class _LIBCPP_PREFERRED_NAME(istringstream)
  38. _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistringstream)) basic_istringstream;
  39. template <class _CharT, class _Traits, class _Allocator>
  40. class _LIBCPP_PREFERRED_NAME(ostringstream)
  41. _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wostringstream)) basic_ostringstream;
  42. template <class _CharT, class _Traits, class _Allocator>
  43. class _LIBCPP_PREFERRED_NAME(stringstream)
  44. _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringstream)) basic_stringstream;
  45. _LIBCPP_END_NAMESPACE_STD
  46. #endif // _LIBCPP___FWD_SSTREAM_H