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;
342 // Class template basic_stringbuf [stringbuf]
345 class _LIBCPP_TEMPLATE_VIS basic_stringbuf : public basic_streambuf<_CharT, _Traits> {
361 _LIBCPP_HIDE_FROM_ABI void __move_init(basic_stringbuf&& __rhs);
365 _LIBCPP_HIDE_FROM_ABI basic_stringbuf() : __hm_(nullptr), __mode_(ios_base::in | ios_base::out) {
370 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(ios_base::openmode __wch) : __hm_(nullptr), __mode_(__wch) {
375 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const string_type& __s,
382 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const allocator_type& __a)
383 : basic_stringbuf(ios_base::in | ios_base::out, __a) {}
385 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(ios_base::openmode __wch, const allocator_type& __a)
390 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(string_type&& __s,
398 basic_stringbuf(const basic_string<char_type, traits_type, _SAlloc>& __s, const allocator_type& __a)
399 : basic_stringbuf(__s, ios_base::in | ios_base::out, __a) {}
402 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(
410 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const basic_string<char_type, traits_type, _SAlloc>& __s,
421 _LIBCPP_HIDE_FROM_ABI explicit basic_stringbuf(const _Tp& __t,
423 : basic_stringbuf(__t, __which, _Allocator()) {}
427 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(const _Tp& __t, const _Allocator& __a)
428 : basic_stringbuf(__t, ios_base::in | ios_base::out, __a) {}
432 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(const _Tp& __t, ios_base::openmode __which, const _Allocator& __a)
441 basic_stringbuf(const basic_stringbuf&) = delete;
442 basic_stringbuf(basic_stringbuf&& __rhs) : __mode_(__rhs.__mode_) { __move_init(std::move(__rhs)); }
445 _LIBCPP_HIDE_FROM_ABI basic_stringbuf(basic_stringbuf&& __rhs, const allocator_type& __a)
446 : basic_stringbuf(__rhs.__mode_, __a) {
452 basic_stringbuf& operator=(const basic_stringbuf&) = delete;
453 basic_stringbuf& operator=(basic_stringbuf&& __rhs);
454 void swap(basic_stringbuf& __rhs)
540 _LIBCPP_HIDE_FROM_ABI void basic_stringbuf<_CharT, _Traits, _Allocator>::__move_init(basic_stringbuf&& __rhs) {
576 basic_stringbuf<_CharT, _Traits, _Allocator>&
577 basic_stringbuf<_CharT, _Traits, _Allocator>::operator=(basic_stringbuf&& __rhs) {
619 void basic_stringbuf<_CharT, _Traits, _Allocator>::swap(basic_stringbuf& __rhs)
692 swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, basic_stringbuf<_CharT, _Traits, _Allocator>& __y)
702 basic_string<_CharT, _Traits, _Allocator> basic_stringbuf<_CharT, _Traits, _Allocator>::str() const {
714 _LIBCPP_HIDE_FROM_ABI void basic_stringbuf<_CharT, _Traits, _Allocator>::__init_buf_ptrs() {
740 basic_stringbuf<_CharT, _Traits, _Allocator>::view() const noexcept {
752 typename basic_stringbuf<_CharT, _Traits, _Allocator>::int_type
753 basic_stringbuf<_CharT, _Traits, _Allocator>::underflow() {
766 typename basic_stringbuf<_CharT, _Traits, _Allocator>::int_type
767 basic_stringbuf<_CharT, _Traits, _Allocator>::pbackfail(int_type __c) {
785 typename basic_stringbuf<_CharT, _Traits, _Allocator>::int_type
786 basic_stringbuf<_CharT, _Traits, _Allocator>::overflow(int_type __c) {
820 typename basic_stringbuf<_CharT, _Traits, _Allocator>::pos_type basic_stringbuf<_CharT, _Traits, _Allocator>::seekoff(
879 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
952 _LIBCPP_HIDE_FROM_ABI basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const {
953 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(std::addressof(__sb_));
1015 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
1090 _LIBCPP_HIDE_FROM_ABI basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const {
1091 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(std::addressof(__sb_));
1153 basic_stringbuf<char_type, traits_type, allocator_type> __sb_;
1230 _LIBCPP_HIDE_FROM_ABI basic_stringbuf<char_type, traits_type, allocator_type>* rdbuf() const {
1231 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(std::addressof(__sb_));
1279 extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_stringbuf<char>;