名稱空間
變體
操作

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

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

返回所有索引小於 i 的範圍尺寸的乘積。如果 i <= rank()false,則行為未定義。

[編輯] 引數

i - 要相乘的範圍尺寸的結束索引。

[編輯] 返回值

如果 i > 0true,返回範圍 [0i) 中所有 kextent(k) 的乘積,否則返回 1

[編輯] 參閱

返回範圍 [i + 1rank()) 中維度尺寸的乘積
(僅用於說明的成員函式*)[編輯]