命名空间
变体
操作

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

来自 cppreference.cn
< 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

[编辑] 参阅