Path: blob/main/contrib/llvm-project/libcxx/include/__fwd/fstream.h
35233 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _LIBCPP___FWD_FSTREAM_H9#define _LIBCPP___FWD_FSTREAM_H1011#include <__config>12#include <__fwd/string.h>1314#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)15# pragma GCC system_header16#endif1718_LIBCPP_BEGIN_NAMESPACE_STD1920template <class _CharT, class _Traits = char_traits<_CharT> >21class _LIBCPP_TEMPLATE_VIS basic_filebuf;22template <class _CharT, class _Traits = char_traits<_CharT> >23class _LIBCPP_TEMPLATE_VIS basic_ifstream;24template <class _CharT, class _Traits = char_traits<_CharT> >25class _LIBCPP_TEMPLATE_VIS basic_ofstream;26template <class _CharT, class _Traits = char_traits<_CharT> >27class _LIBCPP_TEMPLATE_VIS basic_fstream;2829using filebuf = basic_filebuf<char>;30using ifstream = basic_ifstream<char>;31using ofstream = basic_ofstream<char>;32using fstream = basic_fstream<char>;3334#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS35using wfilebuf = basic_filebuf<wchar_t>;36using wifstream = basic_ifstream<wchar_t>;37using wofstream = basic_ofstream<wchar_t>;38using wfstream = basic_fstream<wchar_t>;39#endif4041template <class _CharT, class _Traits>42class _LIBCPP_PREFERRED_NAME(filebuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wfilebuf)) basic_filebuf;43template <class _CharT, class _Traits>44class _LIBCPP_PREFERRED_NAME(ifstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wifstream)) basic_ifstream;45template <class _CharT, class _Traits>46class _LIBCPP_PREFERRED_NAME(ofstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wofstream)) basic_ofstream;47template <class _CharT, class _Traits>48class _LIBCPP_PREFERRED_NAME(fstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wfstream)) basic_fstream;4950_LIBCPP_END_NAMESPACE_STD5152#endif // _LIBCPP___FWD_FSTREAM_H535455