命名空间
变体
操作

std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::rank

来自 cppreference.cn
< cpp‎ | container‎ | mdspan
 
 
 
 
static constexpr rank_type rank() noexcept;
(since C++23)

返回 mdspan 中的维度数。等价于 return Extents::rank()

目录

[编辑] 参数

(无)

[编辑] 返回值

维度数。

[编辑] 示例

[编辑] 参见

[静态]
返回 extents 的静态秩
(std::extents<IndexType,Extents...> 的公有静态成员函数) [编辑]
返回 mdspan 的动态秩
(公有静态成员函数) [编辑]