名稱空間
變體
操作

std::extents<IndexType,Extents...>::rev-prod-of-extents

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan‎ | extents
 
 
 
 
 
constexpr std::size_t /*rev-prod-of-extents*/( rank_type i ) const noexcept;
(C++23 起)
(僅作說明*)

返回所有索引大於 i 的維度大小的乘積。如果 i < rank()false,則行為未定義。

[編輯] 引數

i - 一個索引,在其之上相應維度的所有大小將相乘

[編輯] 返回值

如果 i + 1 < rank()true,則返回所有範圍 [i + 1rank())kextent(k) 的乘積,否則返回 1

[編輯] 參閱

返回範圍 [0i) 中維度大小的乘積
(僅用於說明的成員函式*)[編輯]