34 #ifndef _GLIBCXX_SSTREAM
35 #define _GLIBCXX_SSTREAM 1
37 #pragma GCC system_header
42 namespace std _GLIBCXX_VISIBILITY(default)
44 _GLIBCXX_BEGIN_NAMESPACE_VERSION
59 template<
typename _CharT,
typename _Traits,
typename _Alloc>
68 typedef _Alloc allocator_type;
69 typedef typename traits_type::int_type
int_type;
70 typedef typename traits_type::pos_type
pos_type;
71 typedef typename traits_type::off_type
off_type;
75 typedef typename __string_type::size_type __size_type;
110 { _M_stringbuf_init(__mode); }
156 _M_stringbuf_init(ios_base::openmode __mode)
159 __size_type __len = 0;
161 __len = _M_string.
size();
162 _M_sync(const_cast<char_type*>(_M_string.
data()), 0, __len);
211 _M_sync(__s, __n, 0);
262 template<
typename _CharT,
typename _Traits,
typename _Alloc>
271 typedef _Alloc allocator_type;
282 __stringbuf_type _M_stringbuf;
301 { this->
init(&_M_stringbuf); }
318 ios_base::openmode __mode = ios_base::in)
320 { this->
init(&_M_stringbuf); }
340 {
return const_cast<__stringbuf_type*
>(&_M_stringbuf); }
348 {
return _M_stringbuf.str(); }
358 { _M_stringbuf.str(__s); }
372 template <
typename _CharT,
typename _Traits,
typename _Alloc>
381 typedef _Alloc allocator_type;
392 __stringbuf_type _M_stringbuf;
411 { this->
init(&_M_stringbuf); }
430 { this->
init(&_M_stringbuf); }
450 {
return const_cast<__stringbuf_type*
>(&_M_stringbuf); }
458 {
return _M_stringbuf.str(); }
468 { _M_stringbuf.str(__s); }
482 template <
typename _CharT,
typename _Traits,
typename _Alloc>
491 typedef _Alloc allocator_type;
502 __stringbuf_type _M_stringbuf;
520 { this->
init(&_M_stringbuf); }
537 { this->
init(&_M_stringbuf); }
557 {
return const_cast<__stringbuf_type*
>(&_M_stringbuf); }
565 {
return _M_stringbuf.str(); }
575 { _M_stringbuf.str(__s); }
578 _GLIBCXX_END_NAMESPACE_VERSION