35#define _STREAMBUF_TCC 1
38#pragma GCC system_header
41#pragma GCC diagnostic push
42#pragma GCC diagnostic ignored "-Wc++11-extensions"
44namespace std _GLIBCXX_VISIBILITY(default)
46_GLIBCXX_BEGIN_NAMESPACE_VERSION
48 template<
typename _CharT,
typename _Traits>
61 traits_type::copy(__s, this->
gptr(), __len);
64 this->__safe_gbump(__len);
70 if (!traits_type::eq_int_type(__c, traits_type::eof()))
72 traits_type::assign(*__s++, traits_type::to_char_type(__c));
82 template<
typename _CharT,
typename _Traits>
95 traits_type::copy(this->
pptr(), __s, __len);
98 this->__safe_pbump(__len);
104 if (!traits_type::eq_int_type(__c, traits_type::eof()))
119 template<
typename _CharT,
typename _Traits>
127 typename _Traits::int_type __c = __sbin->
sgetc();
128 while (!_Traits::eq_int_type(__c, _Traits::eof()))
130 __c = __sbout->
sputc(_Traits::to_char_type(__c));
131 if (_Traits::eq_int_type(__c, _Traits::eof()))
142 template<
typename _CharT,
typename _Traits>
148 return __copy_streambufs_eof(__sbin, __sbout, __ineof);
153#if _GLIBCXX_EXTERN_TEMPLATE
161#ifdef _GLIBCXX_USE_WCHAR_T
171_GLIBCXX_END_NAMESPACE_VERSION
174#pragma GCC diagnostic pop
constexpr const _Tp & min(const _Tp &, const _Tp &)
This does what you think it does.
ISO C++ entities toplevel namespace is std.
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
The actual work of input and output (interface).
traits_type::int_type int_type
char_type * epptr() const
Access to the put area.
virtual int_type overflow(int_type __c=traits_type::eof())
Consumes data from the buffer; writes to the controlled sequence.
virtual streamsize xsputn(const char_type *__s, streamsize __n)
Multiple character insertion.
char_type * pptr() const
Access to the put area.
virtual int_type uflow()
Fetches more data from the controlled sequence.
char_type * egptr() const
Access to the get area.
char_type * gptr() const
Access to the get area.
virtual streamsize xsgetn(char_type *__s, streamsize __n)
Multiple character extraction.
int_type snextc()
Getting the next character.
int_type sgetc()
Getting the next character.
int_type sputc(char_type __c)
Entry point for all single-character output functions.