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);
103 int_type __c = this->overflow(traits_type::to_int_type(*
__s));
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()))
137 __c = __sbin->snextc();
142 template<
typename _CharT,
typename _Traits>
144 __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin,
145 basic_streambuf<_CharT, _Traits>* __sbout)
148 return __copy_streambufs_eof(__sbin, __sbout, __ineof);
153#if _GLIBCXX_EXTERN_TEMPLATE
154 extern template class basic_streambuf<char>;
158 __copy_streambufs(basic_streambuf<char>*,
159 basic_streambuf<char>*);
161#ifdef _GLIBCXX_USE_WCHAR_T
162 extern template class basic_streambuf<wchar_t>;
166 __copy_streambufs(basic_streambuf<wchar_t>*,
167 basic_streambuf<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.
traits_type::int_type int_type
virtual streamsize xsputn(const char_type *__s, streamsize __n)
Multiple character insertion.
virtual streamsize xsgetn(char_type *__s, streamsize __n)
Multiple character extraction.