std::layout_right::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 | - | 基盤となるextentsオブジェクト内の多次元インデックス |
戻り値
オフセット値。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
多次元インデックスをオフセット値にマッピングする
(
std::layout_left::mapping<Extents>
の公開メンバ関数)
|
|
|
多次元インデックスをオフセット値にマッピングする
(
std::layout_stride::mapping<Extents>
の公開メンバ関数)
|
|
|
指定された多次元インデックスの要素にアクセスする
(
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>
の公開メンバ関数)
|