名稱空間
變體
操作

std::extents<IndexType,Extents...>::dynamic-index-inv

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan‎ | extents
 
 
 
 
 
private:
    static constexpr auto /*dynamic-index-inv*/( rank_type i ) noexcept;
(C++23 起)
(僅作說明*)

返回數字 r,使得在範圍 [0r + 1) 中恰好有 [0i + 1) 個動態範圍。如果 i <= rank_dynamic()false,則行為未定義。

[編輯] 引數

i - 索引

[編輯] 返回值

r 的最小值,使得 dynamic-index(r + 1) == i + 1true

[編輯] 參閱