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_FSTREAM_H 10*06c3fb27SDimitry Andric #define _LIBCPP___FWD_FSTREAM_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_filebuf; 23*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT> > 24*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_ifstream; 25*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT> > 26*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_ofstream; 27*06c3fb27SDimitry Andric template <class _CharT, class _Traits = char_traits<_CharT> > 28*06c3fb27SDimitry Andric class _LIBCPP_TEMPLATE_VIS basic_fstream; 29*06c3fb27SDimitry Andric 30*06c3fb27SDimitry Andric using filebuf = basic_filebuf<char>; 31*06c3fb27SDimitry Andric using ifstream = basic_ifstream<char>; 32*06c3fb27SDimitry Andric using ofstream = basic_ofstream<char>; 33*06c3fb27SDimitry Andric using fstream = basic_fstream<char>; 34*06c3fb27SDimitry Andric 35*06c3fb27SDimitry Andric #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS 36*06c3fb27SDimitry Andric using wfilebuf = basic_filebuf<wchar_t>; 37*06c3fb27SDimitry Andric using wifstream = basic_ifstream<wchar_t>; 38*06c3fb27SDimitry Andric using wofstream = basic_ofstream<wchar_t>; 39*06c3fb27SDimitry Andric using wfstream = basic_fstream<wchar_t>; 40*06c3fb27SDimitry Andric #endif 41*06c3fb27SDimitry Andric 42*06c3fb27SDimitry Andric template <class _CharT, class _Traits> 43*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(filebuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wfilebuf)) basic_filebuf; 44*06c3fb27SDimitry Andric template <class _CharT, class _Traits> 45*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(ifstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wifstream)) basic_ifstream; 46*06c3fb27SDimitry Andric template <class _CharT, class _Traits> 47*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(ofstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wofstream)) basic_ofstream; 48*06c3fb27SDimitry Andric template <class _CharT, class _Traits> 49*06c3fb27SDimitry Andric class _LIBCPP_PREFERRED_NAME(fstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wfstream)) basic_fstream; 50*06c3fb27SDimitry Andric 51*06c3fb27SDimitry Andric _LIBCPP_END_NAMESPACE_STD 52*06c3fb27SDimitry Andric 53*06c3fb27SDimitry Andric #endif // _LIBCPP___FWD_FSTREAM_H 54