38#pragma GCC system_header
40#pragma GCC diagnostic push
41#pragma GCC diagnostic ignored "-Wc++11-extensions"
49 template<
typename _CharT,
typename _Traits>
64 template<
typename _CharT,
typename _Traits>
65 template<
typename _ValueT>
76#ifndef _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT
82 if (__np.
put(*
this, *
this, this->fill(), __v).failed())
98 template<
typename _CharT,
typename _Traits>
107 return _M_insert(
static_cast<long>(
static_cast<unsigned short>(__n)));
109 return _M_insert(
static_cast<long>(__n));
112 template<
typename _CharT,
typename _Traits>
121 return _M_insert(
static_cast<long>(
static_cast<unsigned int>(__n)));
123 return _M_insert(
static_cast<long>(__n));
126 template<
typename _CharT,
typename _Traits>
133 if (__cerb && __sbin)
140 __catch(__cxxabiv1::__forced_unwind&)
155 template<
typename _CharT,
typename _Traits>
173 if (traits_type::eq_int_type(__put, traits_type::eof()))
189 template<
typename _CharT,
typename _Traits>
201 sentry __cerb(*
this);
207 if (this->
rdbuf()->sputn(__s, __n) != __n)
223 template<
typename _CharT,
typename _Traits>
241 if (this->
rdbuf()->pubsync() == -1)
258 template<
typename _CharT,
typename _Traits>
270 template<
typename _CharT,
typename _Traits>
289 template<
typename _CharT,
typename _Traits>
309 template<
typename _CharT,
typename _Traits>
325 __ptr_guard (_CharT *__ip): __p(__ip) { }
326 ~__ptr_guard() {
delete[] __p; }
327 _CharT* __get() {
return __p; }
328 } __pg (
new _CharT[__clen]);
330 _CharT *__ws = __pg.__get();
331 for (
size_t __i = 0; __i < __clen; ++__i)
332 __ws[__i] = __out.
widen(__s[__i]);
333 __ostream_insert(__out, __ws, __clen);
335 __catch(__cxxabiv1::__forced_unwind&)
348#if _GLIBCXX_EXTERN_TEMPLATE
363#ifdef _GLIBCXX_USE_LONG_LONG
364#pragma GCC diagnostic push
365#pragma GCC diagnostic ignored "-Wlong-long"
368#pragma GCC diagnostic pop
374#ifdef _GLIBCXX_USE_WCHAR_T
387#ifdef _GLIBCXX_USE_LONG_LONG
388#pragma GCC diagnostic push
389#pragma GCC diagnostic ignored "-Wlong-long"
392#pragma GCC diagnostic pop
403#pragma GCC diagnostic pop
#define __throw_exception_again
#define _GLIBCXX_VISIBILITY(V)
#define _GLIBCXX_END_NAMESPACE_VERSION
#define _GLIBCXX_BEGIN_NAMESPACE_VERSION
basic_ostream< char > ostream
Base class for char output streams.
basic_ostream< wchar_t > wostream
Base class for wchar_t output streams.
class __attribute((__abi_tag__("cxx11"))) failure typedef _Ios_Fmtflags fmtflags
These are thrown to indicate problems with io.
const _Facet & use_facet(const locale &__loc)
Return a facet.
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
basic_ostream< _CharT, _Traits > & ends(basic_ostream< _CharT, _Traits > &__os)
Write a null character into the output sequence.
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
Write a newline and flush the stream.
const _Facet & __check_facet(const _Facet *__f)
streamsize __copy_streambufs(basic_streambuf< _CharT, _Traits > *__sbin, basic_streambuf< _CharT, _Traits > *__sbout)
ISO C++ entities toplevel namespace is std.
basic_ostream< _CharT, _Traits > * tie() const
Fetches the current tied stream.
void setstate(iostate __state)
Sets additional flags in the error state.
const __num_put_type * _M_num_put
bool good() const
Fast error checking.
char_type widen(char __c) const
Widens characters.
bool fail() const
Fast error checking.
void _M_setstate(iostate __state)
basic_streambuf< _CharT, _Traits > * rdbuf() const
Accessing the underlying buffer.
bool bad() const
Fast error checking.
__ostream_type & write(const char_type *__s, streamsize __n)
Character string insertion.
num_put< char_type, ostreambuf_iterator< char_type, traits_type > > __num_put_type
pos_type tellp()
Getting the current write position.
_Traits::off_type off_type
__ostream_type & _M_insert(_ValueT __v)
__ostream_type & put(char_type __c)
Simple insertion.
basic_streambuf< _CharT, _Traits > __streambuf_type
_Traits::pos_type pos_type
basic_ostream(__streambuf_type *__sb)
Base constructor.
__ostream_type & flush()
Synchronizing the stream buffer.
__ostream_type & seekp(pos_type)
Changing the current write position.
__ostream_type & operator<<(__ostream_type &(*__pf)(__ostream_type &))
Interface for manipulators.
_Traits::int_type int_type
Template class basic_ostream.
static constexpr std::size_t length(const char_type *__s)
Thrown as part of forced unwinding.
_Ios_Iostate iostate
This is a bitmask type.
static const fmtflags hex
Converts integer input or generates integer output in hexadecimal base.
static const seekdir cur
Request a seek relative to the current position within the sequence.
static const fmtflags basefield
A mask of dec|oct|hex. Useful for the 2-arg form of setf.
static const openmode out
Open for output. Default for ofstream and fstream.
fmtflags flags() const
Access to format flags.
static const iostate goodbit
Indicates all is well.
static const iostate badbit
Indicates a loss of integrity in an input or output sequence (such as an irrecoverable read error fro...
static const fmtflags oct
Converts integer input or generates integer output in octal base.
_Ios_Seekdir seekdir
This is an enumerated type.
static const iostate failbit
Indicates that an input operation failed to read the expected characters, or that an output operation...
iter_type put(iter_type __s, ios_base &__io, char_type __fill, bool __v) const
Numeric formatting.
basic_ostream< _CharT, _Traits > & _M_os
Performs setup work for output streams.