名前空間
変種

std::span<T,Extent>::operator=

提供: cppreference.com
<tbody> </tbody>
constexpr span& operator=( const span& other ) noexcept = default;

other*this に代入します。 このデフォルト化された代入演算子は、データポインタおよびサイズのシャローコピーを行います。 つまり、この関数を呼び出した後、 data() == other.data() および size() == other.size() になります。

引数

other - コピーする別のスパン

戻り値

*this

関連項目

span を構築します
(パブリックメンバ関数) [edit]
要素のシーケンスの先頭を指すポインタを返します
(パブリックメンバ関数) [edit]
シーケンスの要素数を返します
(パブリックメンバ関数) [edit]