Namespaces
Variants

std::layout_right::mapping<Extents>:: operator()

From cppreference.net
template < class ... Indices >
constexpr index_type operator ( ) ( Indices... indices ) const noexcept ;
(C++23부터)

다차원 인덱스 indices 를 오프셋 값으로 매핑합니다.

다음 식과 동등합니다: return ( ( static_cast < index_type > ( indices ) * stride ( P ) ) + ... + 0 ) ; 여기서 P 는 다음 조건을 만족하는 팩입니다: std:: is_same_v < std:: index_sequence_for < Indices... > , std:: index_sequence < P... >> true 입니다.

이 오버로드는 다음 조건에서만 오버로드 해결에 참여합니다:

만약 extents_type​ :: index-cast ( i ) extents ( ) 의 다차원 인덱스가 아닌 경우, 동작은 정의되지 않습니다.

목차

매개변수

indices - 기본 익스텐트 객체의 다차원 인덱스

반환값

오프셋 값.

예제

참고 항목

다차원 인덱스를 오프셋 값으로 매핑합니다
( std::layout_left::mapping<Extents> 의 public member function)
다차원 인덱스를 오프셋 값으로 매핑합니다
( std::layout_stride::mapping<Extents> 의 public member function)
지정된 다차원 인덱스의 요소에 접근합니다
( std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> 의 public member function)