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 일 때만 오버로드 해결에 참여합니다.

i >= extents_type :: rank ( ) true 인 경우 동작은 정의되지 않습니다.

목차

매개변수

i - 범위 내의 랭크 인덱스 [ 0 , extents_type :: rank ( ) )

반환값

지정된 랭크 인덱스에서의 스트라이드.

예제

참고 항목

지정된 차원을 따라 스트라이드를 획득함
( std::layout_stride::mapping<Extents> 의 공개 멤버 함수)
지정된 차원을 따라 스트라이드를 획득함
( std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> 의 공개 멤버 함수)