名前空間
変種
操作

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 [0extents().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 メンバ関数) [編集]
English 日本語 中文(简体) 中文(繁體)