Lines Matching refs:basic_stringbuf
18 // Class template basic_stringbuf [stringbuf]
20 class basic_stringbuf
32 explicit basic_stringbuf(ios_base::openmode which = ios_base::in | ios_base::out); // before C++20
33 basic_stringbuf() : basic_stringbuf(ios_base::in | ios_base::out) {} // C++20
34 explicit basic_stringbuf(ios_base::openmode which); // C++20
35 explicit basic_stringbuf(const basic_string<char_type, traits_type, allocator_type>& s,
37 explicit basic_stringbuf(const allocator_type& a)
38 : basic_stringbuf(ios_base::in | ios_base::out, a) {} // C++20
39 basic_stringbuf(ios_base::openmode which, const allocator_type& a); // C++20
40 explicit basic_stringbuf(basic_string<char_type, traits_type, allocator_type>&& s,
43 basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s, const allocator_type& a)
44 : basic_stringbuf(s, ios_base::in | ios_base::out, a) {} // C++20
46 basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
49 explicit basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
52 explicit basic_stringbuf(const T& t,
55 basic_stringbuf(const T& t, const Allocator& a); // Since C++26
57 basic_stringbuf(const T& t, ios_base::openmode which, const Allocator& a); // Since C++26
58 basic_stringbuf(const basic_stringbuf&) = delete;
59 basic_stringbuf(basic_stringbuf&& rhs);
60 basic_stringbuf(basic_stringbuf&& rhs, const allocator_type& a); // C++20
63 basic_stringbuf& operator=(const basic_stringbuf&) = delete;
64 basic_stringbuf& operator=(basic_stringbuf&& rhs);
65 void swap(basic_stringbuf& rhs) noexcept(see below); // conditionally noexcept since C++20
96 void swap(basic_stringbuf<charT, traits, Allocator>& x,
97 basic_stringbuf<charT, traits, Allocator>& y); // conditionally noexcept since C++20
99 typedef basic_stringbuf<char> stringbuf;
100 typedef basic_stringbuf<wchar_t> wstringbuf;
148 basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const;
217 basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const;
287 basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const;
334 // Class template basic_stringbuf [stringbuf]
337 class _LIBCPP_TEMPLATE_VIS basic_stringbuf : public basic_streambuf<_CharT, _Traits> {
353 _LIBCPP_HIDE_FROM_ABI void __move_init(basic_stringbuf&& __rhs);
357 _LIBCPP_HIDE_FROM_ABI basic_stringbuf() : __hm_(nullptr), __mode_(ios_base::in | ios_base::out) {}
359 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(ios_base::openmode __wch) : __hm_(nullptr), __mode_(__wch) {}
361 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const string_type& __s,
368 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const allocator_type& __a)
369 : basic_stringbuf(ios_base::in | ios_base::out, __a) {}
371 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(ios_base::openmode __wch, const allocator_type& __a)
374 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(string_type&& __s,
382 basic_stringbuf(const basic_string<char_type, traits_type, _SAlloc>& __s, const allocator_type& __a)
383 : basic_stringbuf(__s, ios_base::in | ios_base::out, __a) {}
386 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(
394 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const basic_string<char_type, traits_type, _SAlloc>& __s,
405 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const _Tp& __t,
407 : basic_stringbuf(__t, __which, _Allocator()) {}
411 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(const _Tp& __t, const _Allocator& __a)
412 : basic_stringbuf(__t, ios_base::in | ios_base::out, __a) {}
416 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(const _Tp& __t, ios_base::openmode __which, const _Allocator& __a)
425 basic_stringbuf(const basic_stringbuf&) = delete;
426 basic_stringbuf(basic_stringbuf&& __rhs) : __mode_(__rhs.__mode_) { __move_init(std::move(__rhs)); }
429 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(basic_stringbuf&& __rhs, const allocator_type& __a)
430 : basic_stringbuf(__rhs.__mode_, __a) {
436 basic_stringbuf& operator=(const basic_stringbuf&) = delete;
437 basic_stringbuf& operator=(basic_stringbuf&& __rhs);
438 void swap(basic_stringbuf& __rhs)
524 _LIBCPP_HIDE_FROM_ABI void basic_stringbuf<_CharT, _Traits, _Allocator>::__move_init(basic_stringbuf&& __rhs) {
560 basic_stringbuf<_CharT, _Traits, _Allocator>&
561 basic_stringbuf<_CharT, _Traits, _Allocator>::operator=(basic_stringbuf&& __rhs) {
603 void basic_stringbuf<_CharT, _Traits, _Allocator>::swap(basic_stringbuf& __rhs)
676 swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, basic_stringbuf<_CharT, _Traits, _Allocator>& __y)
686 basic_string<_CharT, _Traits, _Allocator> basic_stringbuf<_CharT, _Traits, _Allocator>::str() const {
698 _LIBCPP_HIDE_FROM_ABI void basic_stringbuf<_CharT, _Traits, _Allocator>::__init_buf_ptrs() {
724 basic_stringbuf<_CharT, _Traits, _Allocator>::view() const noexcept {
736 typename basic_stringbuf<_CharT, _Traits, _Allocator>::int_type
737 basic_stringbuf<_CharT, _Traits, _Allocator>::underflow() {
750 typename basic_stringbuf<_CharT, _Traits, _Allocator>::int_type
751 basic_stringbuf<_CharT, _Traits, _Allocator>::pbackfail(int_type __c) {
769 typename basic_stringbuf<_CharT, _Traits, _Allocator>::int_type
770 basic_stringbuf<_CharT, _Traits, _Allocator>::overflow(int_type __c) {
804 typename basic_stringbuf<_CharT, _Traits, _Allocator>::pos_type basic_stringbuf<_CharT, _Traits, _Allocator>::seekoff(
863 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
935 _LIBCPP_HIDE_FROM_ABI basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const {
936 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
998 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
1072 _LIBCPP_HIDE_FROM_ABI basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const {
1073 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
1135 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
1212 _LIBCPP_HIDE_FROM_ABI basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const {
1213 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
1261 extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_stringbuf<char>;