2023-04-20 21:03:40 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef _LIBCPP___FWD_IOS_H
|
|
|
|
#define _LIBCPP___FWD_IOS_H
|
|
|
|
|
|
|
|
#include <__config>
|
|
|
|
#include <__fwd/string.h>
|
|
|
|
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
# pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
|
|
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
|
|
|
|
2024-04-16 20:18:34 +02:00
|
|
|
class _LIBCPP_EXPORTED_FROM_ABI ios_base;
|
|
|
|
|
2023-04-20 21:03:40 +02:00
|
|
|
template <class _CharT, class _Traits = char_traits<_CharT> >
|
2025-04-09 23:47:57 +02:00
|
|
|
class basic_ios;
|
2023-04-20 21:03:40 +02:00
|
|
|
|
2023-05-06 11:45:13 +02:00
|
|
|
using ios = basic_ios<char>;
|
2024-11-06 10:39:19 +01:00
|
|
|
#if _LIBCPP_HAS_WIDE_CHARACTERS
|
2023-05-06 11:45:13 +02:00
|
|
|
using wios = basic_ios<wchar_t>;
|
2023-04-20 21:03:40 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
template <class _CharT, class _Traits>
|
2023-04-27 17:10:07 +02:00
|
|
|
class _LIBCPP_PREFERRED_NAME(ios) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wios)) basic_ios;
|
2023-04-20 21:03:40 +02:00
|
|
|
|
|
|
|
#if defined(_NEWLIB_VERSION)
|
|
|
|
// On newlib, off_t is 'long int'
|
2023-05-06 11:45:13 +02:00
|
|
|
using streamoff = long int; // for char_traits in <string>
|
2023-04-20 21:03:40 +02:00
|
|
|
#else
|
2023-05-06 11:45:13 +02:00
|
|
|
using streamoff = long long; // for char_traits in <string>
|
2023-04-20 21:03:40 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
_LIBCPP_END_NAMESPACE_STD
|
|
|
|
|
|
|
|
#endif // _LIBCPP___FWD_IOS_H
|