Namespaces
Variants
Actions

std::basic_spanbuf<CharT,Traits>::operator=

From cppreference.com
< cpp‎ | io‎ | basic spanbuf
 
C++
 
Input/output library
 
std::basic_spanbuf
Public member functions
basic_spanbuf::operator=
(C++23)
Protected member functions
Non-member functions
 
basic_spanbuf& operator=( basic_spanbuf&& rhs );
(1) (since C++23)
basic_spanbuf& operator( const basic_spanbuf& ) = delete;
(2) (since C++23)
1) Move assignment operator. Equivalent to 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.
2) The copy assignment operator is deleted; basic_spanbuf is not CopyAssignable.

Contents

[edit] Parameters

rhs - another basic_spanbuf that will be moved from

[edit] Return value

*this

[edit] Exceptions

May throw implementation-defined exceptions.

[edit] Example

[edit] See also

constructs a basic_spanbuf object
(public member function) [edit]
swaps two basic_spanbuf objects
(public member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant