std::span<T,Extent>::operator= (3) - Linux Manuals
std::span<T,Extent>::operator=: std::span<T,Extent>::operator=
NAME
std::span<T,Extent>::operator= - std::span<T,Extent>::operator=
Synopsis
constexpr span& operator=( const span& other ) noexcept = default;
Assigns other to *this. This defaulted assignment operator performs a shallow copy of the data pointer and the size, i.e., after a call to this function, data() == other.data() and size() == other.size().
Parameters
other - another span to copy from
Return value
*this.
See also
constructor (public member function)
data (public member function)
size (public member function)