123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- #ifndef _LIBCPP_IOSFWD
- #define _LIBCPP_IOSFWD
- #include <__config>
- #include <__fwd/fstream.h>
- #include <__fwd/ios.h>
- #include <__fwd/istream.h>
- #include <__fwd/ostream.h>
- #include <__fwd/sstream.h>
- #include <__fwd/streambuf.h>
- #include <__fwd/string.h>
- #include <__std_mbstate_t.h>
- #include <version>
- #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
- # pragma GCC system_header
- #endif
- _LIBCPP_BEGIN_NAMESPACE_STD
- class _LIBCPP_EXPORTED_FROM_ABI ios_base;
- template <class _CharT, class _Traits = char_traits<_CharT> >
- class _LIBCPP_TEMPLATE_VIS istreambuf_iterator;
- template <class _CharT, class _Traits = char_traits<_CharT> >
- class _LIBCPP_TEMPLATE_VIS ostreambuf_iterator;
- template <class _State>
- class _LIBCPP_TEMPLATE_VIS fpos;
- typedef fpos<mbstate_t> streampos;
- #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
- typedef fpos<mbstate_t> wstreampos;
- #endif
- #ifndef _LIBCPP_HAS_NO_CHAR8_T
- typedef fpos<mbstate_t> u8streampos;
- #endif
- typedef fpos<mbstate_t> u16streampos;
- typedef fpos<mbstate_t> u32streampos;
- #if _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM)
- template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT>>
- class basic_syncbuf;
- using syncbuf = basic_syncbuf<char>;
- # ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
- using wsyncbuf = basic_syncbuf<wchar_t>;
- # endif
- template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT>>
- class basic_osyncstream;
- using osyncstream = basic_osyncstream<char>;
- # ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
- using wosyncstream = basic_osyncstream<wchar_t>;
- # endif
- #endif
- template <class _Tp, class _Alloc = allocator<_Tp> >
- class _LIBCPP_TEMPLATE_VIS vector;
- template <class _CharT, class _Traits>
- class __save_flags {
- typedef basic_ios<_CharT, _Traits> __stream_type;
- typedef typename __stream_type::fmtflags fmtflags;
- __stream_type& __stream_;
- fmtflags __fmtflags_;
- _CharT __fill_;
- __save_flags(const __save_flags&);
- __save_flags& operator=(const __save_flags&);
- public:
- _LIBCPP_HIDE_FROM_ABI explicit __save_flags(__stream_type& __stream)
- : __stream_(__stream), __fmtflags_(__stream.flags()), __fill_(__stream.fill()) {}
- _LIBCPP_HIDE_FROM_ABI ~__save_flags() {
- __stream_.flags(__fmtflags_);
- __stream_.fill(__fill_);
- }
- };
- _LIBCPP_END_NAMESPACE_STD
- #endif
|