istream.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_ISTREAM_H
  9. #define _LIBCPP___FWD_ISTREAM_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> >
  17. class _LIBCPP_TEMPLATE_VIS basic_istream;
  18. template <class _CharT, class _Traits = char_traits<_CharT> >
  19. class _LIBCPP_TEMPLATE_VIS basic_iostream;
  20. using istream = basic_istream<char>;
  21. using iostream = basic_iostream<char>;
  22. #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
  23. using wistream = basic_istream<wchar_t>;
  24. using wiostream = basic_iostream<wchar_t>;
  25. #endif
  26. template <class _CharT, class _Traits>
  27. class _LIBCPP_PREFERRED_NAME(istream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistream)) basic_istream;
  28. template <class _CharT, class _Traits>
  29. class _LIBCPP_PREFERRED_NAME(iostream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wiostream)) basic_iostream;
  30. _LIBCPP_END_NAMESPACE_STD
  31. #endif // _LIBCPP___FWD_ISTREAM_H