basic_ospanstream& operator=( basic_ospanstream&& other ); | (1) | (since C++23) |
basic_ospanstream& operator=( const basic_ospanstream& ) = delete; | (2) | (since C++23) |
other to *this, effectively move-assigning both the std::basic_ostream base class subobject and the wrapped std::basic_spanbuf.basic_ospanstream is not copy assignable.Note that move assignment operator of the base class swaps all stream state variables (except for rdbuf()) between *this and other.
It is implementation-defined whether the std::basic_spanbuf wrapped in other still holds an underlying buffer after the move assignment.
| other | - | another stream to move from |
*this.
May throw implementation-defined exceptions.
|
(C++23) | assigns a basic_spanbuf object (public member function of std::basic_spanbuf<CharT,Traits>) |
|
(C++11) | move-assigns from another basic_ostream (protected member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/basic_ospanstream/operator%3D