Namespaces
Variants

std::layout_right::mapping<Extents>:: stride

From cppreference.net
constexpr index_type stride ( rank_type i ) const noexcept ;
(C++23以降)

ランクインデックス i におけるマッピングのストライドを返します。 return extents ( ) . rev-prod-of-extents ( i ) ; と等価です。

このオーバーロードは、以下の条件が満たされる場合にのみオーバーロード解決に参加します: extents_type​ :: ​rank ( ) > 0 true である場合。

i >= extents_type :: rank ( ) true の場合、動作は未定義です。

目次

パラメータ

i - 範囲 [ 0 , extents_type :: rank ( ) ) 内のランクインデックス

戻り値

指定されたランクインデックスにおけるストライド。

関連項目

指定された次元のストライドを取得する
( std::layout_stride::mapping<Extents> の公開メンバ関数)
指定された次元のストライドを取得する
( std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> の公開メンバ関数)