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 - 基盤となるextentsオブジェクト内の多次元インデックス

戻り値

オフセット値。

関連項目

多次元インデックスをオフセット値にマッピングする
( std::layout_left::mapping<Extents> の公開メンバ関数)
多次元インデックスをオフセット値にマッピングする
( std::layout_stride::mapping<Extents> の公開メンバ関数)
指定された多次元インデックスの要素にアクセスする
( std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> の公開メンバ関数)