basic_spanbuf& operator=( basic_spanbuf&& rhs ); | (1) | (since C++23) |
basic_spanbuf& operator( const basic_spanbuf& ) = delete; | (2) | (since C++23) |
auto tmp{std::move(rhs)}; this->swap(tmp); return *this;
. After move assignment, *this
holds the state rhs
held before move assignment. It is implementation-defined whether rhs
still hold the underlying buffer after move assignment.rhs | - | another basic_spanbuf that will be moved from |
*this
.
May throw implementation-defined exceptions.
(C++23) | constructs a basic_spanbuf object (public member function) |
(C++23) | swaps two basic_spanbuf objects (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/basic_spanbuf/operator%3D