std::layout_left::mapping<Extents>:: operator()
|
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 입니다.
이 오버로드는 다음 조건에서만 오버로드 해결에 참여합니다:
- sizeof... ( Indices ) == extents_type :: rank ( ) 가 true 이고,
- ( std:: is_convertible_v < Indices, index_type > && ... ) 가 true 이며,
- ( std:: is_nothrow_constructible_v < index_type, Indices > && ... ) 가 true 입니다.
만약 extents_type :: index-cast ( i ) 가 extents ( ) 의 다차원 인덱스가 아닌 경우, 동작은 정의되지 않습니다.
목차 |
매개변수
| indices | - | 기본 익스텐트 객체의 다차원 인덱스 |
반환값
오프셋 값.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |
참고 항목
|
다차원 인덱스를 오프셋 값으로 매핑합니다
(
std::layout_right::mapping<Extents>
의 public 멤버 함수)
|
|
|
다차원 인덱스를 오프셋 값으로 매핑합니다
(
std::layout_stride::mapping<Extents>
의 public 멤버 함수)
|
|
|
지정된 다차원 인덱스의 요소에 접근합니다
(
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>
의 public 멤버 함수)
|