std::basic_spanbuf<CharT,Traits>::operator=
From cppreference.com
< cpp | io | basic spanbuf
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Input/output library
Print functions (C++23)
Buffers
(C++23)
(C++98/26*)
(C++20)
Streams
Abstractions
File I/O
String I/O
Array I/O
(C++23)
(C++23)
(C++23)
(C++98/26*)
(C++98/26*)
(C++98/26*)
Synchronized Output
(C++20)
Types
Error category interface
(C++11)
(C++11)
std::basic_spanbuf
Public member functions
(C++23)
basic_spanbuf::operator=
(C++23)
(C++23)
(C++23)
Protected member functions
(C++23)
(C++23)
(C++23)
Non-member functions
(C++23)
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.
[edit] Parameters
rhs
-
another
basic_spanbuf
that will be moved from
[edit] Return value
*this
[edit] Exceptions
May throw implementation-defined exceptions.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example