std::layout_stride::mapping<Extents>::required_span_size
From cppreference.com
< cpp | container | mdspan | layout stride | mapping
| constexpr index_type required_span_size() const noexcept; |
(C++23から) | |
マッピングに必要なサイズを返します。
Let s be equal to
- 1, if extents().rank() == 0 is true,
- otherwise, 0, if the size of the multidimensional index space extents() is 0,
- otherwise, 1 plus the sum of products of extents().extent(r) - 1 and extents_type::
index-cast(strides_[r]) for all r in the range[0,extents().rank()).
A call is equivalent to return s;.
[編集] 戻り値
マッピングに必要なサイズ。
[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
| マッピングに必要なサイズを返します。 ( std::layout_left::mapping<Extents> の public メンバ関数) | |
| マッピングに必要なサイズを返します。 ( std::layout_right::mapping<Extents> の public メンバ関数) | |
| 多次元インデックス空間のサイズを返す ( std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> の public メンバ関数) |