std::span<T,Extent>::front
提供: cppreference.com
<tbody>
</tbody>
constexpr reference front() const; |
||
スパンの先頭の要素を指す参照を返します。
空のスパンに対する front の呼び出しの結果は未定義動作です。
引数
(なし)
戻り値
最初の要素を指す参照。
計算量
一定。
ノート
スパン c について、式 c.front() は *c.begin() と同等です。
例
| This section is incomplete Reason: no example |
関連項目
| 最後の要素にアクセスします (パブリックメンバ関数) |