xref: /freebsd-src/contrib/llvm-project/libcxx/include/__fwd/istream.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1*06c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
2*06c3fb27SDimitry Andric //
3*06c3fb27SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*06c3fb27SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*06c3fb27SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*06c3fb27SDimitry Andric //
7*06c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
8*06c3fb27SDimitry Andric 
9*06c3fb27SDimitry Andric #ifndef _LIBCPP___FWD_ISTREAM_H
10*06c3fb27SDimitry Andric #define _LIBCPP___FWD_ISTREAM_H
11*06c3fb27SDimitry Andric 
12*06c3fb27SDimitry Andric #include <__config>
13*06c3fb27SDimitry Andric #include <__fwd/string.h>
14*06c3fb27SDimitry Andric 
15*06c3fb27SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16*06c3fb27SDimitry Andric #  pragma GCC system_header
17*06c3fb27SDimitry Andric #endif
18*06c3fb27SDimitry Andric 
19*06c3fb27SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
20*06c3fb27SDimitry Andric 
21*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT> >
22*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_istream;
23*06c3fb27SDimitry Andric 
24*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT> >
25*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_iostream;
26*06c3fb27SDimitry Andric 
27*06c3fb27SDimitry Andric using istream  = basic_istream<char>;
28*06c3fb27SDimitry Andric using iostream = basic_iostream<char>;
29*06c3fb27SDimitry Andric 
30*06c3fb27SDimitry Andric #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
31*06c3fb27SDimitry Andric using wistream  = basic_istream<wchar_t>;
32*06c3fb27SDimitry Andric using wiostream = basic_iostream<wchar_t>;
33*06c3fb27SDimitry Andric #endif
34*06c3fb27SDimitry Andric 
35*06c3fb27SDimitry Andric template <class _CharT, class _Traits>
36*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(istream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistream)) basic_istream;
37*06c3fb27SDimitry Andric 
38*06c3fb27SDimitry Andric template <class _CharT, class _Traits>
39*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(iostream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wiostream)) basic_iostream;
40*06c3fb27SDimitry Andric 
41*06c3fb27SDimitry Andric _LIBCPP_END_NAMESPACE_STD
42*06c3fb27SDimitry Andric 
43*06c3fb27SDimitry Andric #endif // _LIBCPP___FWD_ISTREAM_H
44