33 #ifndef _GLIBXX_STREAMBUF
34 #define _GLIBXX_STREAMBUF 1
36 #pragma GCC system_header
45 namespace std _GLIBCXX_VISIBILITY(default)
47 _GLIBCXX_BEGIN_NAMESPACE_VERSION
49 template<
typename _CharT,
typename _Traits>
51 __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*,
52 basic_streambuf<_CharT, _Traits>*,
bool&);
119 template<
typename _CharT,
typename _Traits>
120 class basic_streambuf
150 template<
bool _IsMove,
typename _CharT2>
151 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
156 template<
typename _CharT2>
157 friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
162 template<
typename _CharT2,
typename _Traits2>
166 template<
typename _CharT2,
typename _Traits2,
typename _Alloc>
171 template<
typename _CharT2,
typename _Traits2,
typename _Alloc>
241 {
return this->
setbuf(__s, __n); }
254 {
return this->
seekoff(__off, __way, __mode); }
266 {
return this->
seekpos(__sp, __mode); }
288 return __ret ? __ret : this->
showmanyc();
301 int_type __ret = traits_type::eof();
302 if (__builtin_expect(!traits_type::eq_int_type(this->
sbumpc(),
304 __ret = this->
sgetc();
320 if (__builtin_expect(this->
gptr() < this->
egptr(),
true))
322 __ret = traits_type::to_int_type(*this->
gptr());
326 __ret = this->
uflow();
342 if (__builtin_expect(this->
gptr() < this->
egptr(),
true))
343 __ret = traits_type::to_int_type(*this->
gptr());
359 {
return this->
xsgetn(__s, __n); }
376 const bool __testpos = this->
eback() < this->
gptr();
377 if (__builtin_expect(!__testpos ||
378 !traits_type::eq(__c, this->
gptr()[-1]),
false))
379 __ret = this->
pbackfail(traits_type::to_int_type(__c));
383 __ret = traits_type::to_int_type(*this->
gptr());
401 if (__builtin_expect(this->
eback() < this->
gptr(),
true))
404 __ret = traits_type::to_int_type(*this->
gptr());
428 if (__builtin_expect(this->
pptr() < this->
epptr(),
true))
432 __ret = traits_type::to_int_type(__c);
435 __ret = this->
overflow(traits_type::to_int_type(__c));
452 {
return this->
xsputn(__s, __n); }
689 {
return traits_type::eof(); }
703 int_type __ret = traits_type::eof();
704 const bool __testeof = traits_type::eq_int_type(this->
underflow(),
708 __ret = traits_type::to_int_type(*this->
gptr());
726 {
return traits_type::eof(); }
770 {
return traits_type::eof(); }
772 #if _GLIBCXX_USE_DEPRECATED
817 __copy_streambufs_eof(basic_streambuf<char>* __sbin,
818 basic_streambuf<char>* __sbout,
bool& __ineof);
819 #ifdef _GLIBCXX_USE_WCHAR_T
822 __copy_streambufs_eof(basic_streambuf<wchar_t>* __sbin,
823 basic_streambuf<wchar_t>* __sbout,
bool& __ineof);
826 _GLIBCXX_END_NAMESPACE_VERSION