@@ -48,10 +48,12 @@ public:
48
48
template <class SAlloc>
49
49
explicit basic_stringbuf(const basic_string<char_type, traits_type, SAlloc>& s,
50
50
ios_base::openmode which = ios_base::in | ios_base::out); // C++20
51
+ basic_stringbuf(const basic_stringbuf&) = delete;
51
52
basic_stringbuf(basic_stringbuf&& rhs);
52
53
basic_stringbuf(basic_stringbuf&& rhs, const allocator_type& a); // C++20
53
54
54
55
// [stringbuf.assign] Assign and swap:
56
+ basic_stringbuf& operator=(const basic_stringbuf&) = delete;
55
57
basic_stringbuf& operator=(basic_stringbuf&& rhs);
56
58
void swap(basic_stringbuf& rhs) noexcept(see below); // conditionally noexcept since C++20
57
59
@@ -119,9 +121,11 @@ public:
119
121
template <class SAlloc>
120
122
explicit basic_istringstream(const basic_string<char_type, traits_type, SAlloc>& s,
121
123
ios_base::openmode which = ios_base::in); // C++20
124
+ basic_istringstream(const basic_istringstream&) = delete;
122
125
basic_istringstream(basic_istringstream&& rhs);
123
126
124
127
// [istringstream.assign] Assign and swap:
128
+ basic_istringstream& operator=(const basic_istringstream&) = delete;
125
129
basic_istringstream& operator=(basic_istringstream&& rhs);
126
130
void swap(basic_istringstream& rhs);
127
131
@@ -178,9 +182,11 @@ public:
178
182
template <class SAlloc>
179
183
explicit basic_ostringstream(const basic_string<char_type, traits_type, SAlloc>& s,
180
184
ios_base::openmode which = ios_base::out); // C++20
185
+ basic_ostringstream(const basic_ostringstream&) = delete;
181
186
basic_ostringstream(basic_ostringstream&& rhs);
182
187
183
188
// [ostringstream.assign] Assign and swap:
189
+ basic_ostringstream& operator=(const basic_ostringstream&) = delete;
184
190
basic_ostringstream& operator=(basic_ostringstream&& rhs);
185
191
void swap(basic_ostringstream& rhs);
186
192
@@ -237,9 +243,11 @@ public:
237
243
template <class SAlloc>
238
244
explicit basic_stringstream(const basic_string<char_type, traits_type, SAlloc>& s,
239
245
ios_base::openmode which = ios_base::out | ios_base::in); // C++20
246
+ basic_stringstream(const basic_stringstream&) = delete;
240
247
basic_stringstream(basic_stringstream&& rhs);
241
248
242
249
// [stringstream.assign] Assign and swap:
250
+ basic_stringstream& operator=(const basic_stringstream&) = delete;
243
251
basic_stringstream& operator=(basic_stringstream&& rhs);
244
252
void swap(basic_stringstream& rhs);
245
253
@@ -364,6 +372,7 @@ public:
364
372
}
365
373
#endif // _LIBCPP_STD_VER >= 20
366
374
375
+ basic_stringbuf (const basic_stringbuf&) = delete ;
367
376
basic_stringbuf (basic_stringbuf&& __rhs) : __mode_(__rhs.__mode_) { __move_init (std::move (__rhs)); }
368
377
369
378
#if _LIBCPP_STD_VER >= 20
@@ -374,6 +383,7 @@ public:
374
383
#endif
375
384
376
385
// [stringbuf.assign] Assign and swap:
386
+ basic_stringbuf& operator =(const basic_stringbuf&) = delete ;
377
387
basic_stringbuf& operator =(basic_stringbuf&& __rhs);
378
388
void swap (basic_stringbuf& __rhs)
379
389
#if _LIBCPP_STD_VER >= 20
@@ -822,12 +832,14 @@ public:
822
832
: basic_istream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__s, __wch | ios_base::in) {}
823
833
#endif // _LIBCPP_STD_VER >= 20
824
834
835
+ basic_istringstream (const basic_istringstream&) = delete ;
825
836
_LIBCPP_HIDE_FROM_ABI basic_istringstream (basic_istringstream&& __rhs)
826
837
: basic_istream<_CharT, _Traits>(std::move(__rhs)), __sb_(std::move(__rhs.__sb_)) {
827
838
basic_istream<_CharT, _Traits>::set_rdbuf (&__sb_);
828
839
}
829
840
830
841
// [istringstream.assign] Assign and swap:
842
+ basic_istringstream& operator =(const basic_istringstream&) = delete ;
831
843
basic_istringstream& operator =(basic_istringstream&& __rhs) {
832
844
basic_istream<char_type, traits_type>::operator =(std::move (__rhs));
833
845
__sb_ = std::move (__rhs.__sb_ );
@@ -929,12 +941,14 @@ public:
929
941
: basic_ostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__s, __wch | ios_base::out) {}
930
942
#endif // _LIBCPP_STD_VER >= 20
931
943
944
+ basic_ostringstream (const basic_ostringstream&) = delete ;
932
945
_LIBCPP_HIDE_FROM_ABI basic_ostringstream (basic_ostringstream&& __rhs)
933
946
: basic_ostream<_CharT, _Traits>(std::move(__rhs)), __sb_(std::move(__rhs.__sb_)) {
934
947
basic_ostream<_CharT, _Traits>::set_rdbuf (&__sb_);
935
948
}
936
949
937
950
// [ostringstream.assign] Assign and swap:
951
+ basic_ostringstream& operator =(const basic_ostringstream&) = delete ;
938
952
basic_ostringstream& operator =(basic_ostringstream&& __rhs) {
939
953
basic_ostream<char_type, traits_type>::operator =(std::move (__rhs));
940
954
__sb_ = std::move (__rhs.__sb_ );
@@ -1040,12 +1054,14 @@ public:
1040
1054
: basic_iostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__s, __wch) {}
1041
1055
#endif // _LIBCPP_STD_VER >= 20
1042
1056
1057
+ basic_stringstream (const basic_stringstream&) = delete ;
1043
1058
_LIBCPP_HIDE_FROM_ABI basic_stringstream (basic_stringstream&& __rhs)
1044
1059
: basic_iostream<_CharT, _Traits>(std::move(__rhs)), __sb_(std::move(__rhs.__sb_)) {
1045
1060
basic_istream<_CharT, _Traits>::set_rdbuf (&__sb_);
1046
1061
}
1047
1062
1048
1063
// [stringstream.assign] Assign and swap:
1064
+ basic_stringstream& operator =(const basic_stringstream&) = delete ;
1049
1065
basic_stringstream& operator =(basic_stringstream&& __rhs) {
1050
1066
basic_iostream<char_type, traits_type>::operator =(std::move (__rhs));
1051
1067
__sb_ = std::move (__rhs.__sb_ );
0 commit comments