Namespaces
Variants

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

From cppreference.net
static constexpr rank_type rank ( ) noexcept ;
(自 C++23 起)

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

目录

参数

(无)

返回值

维度数量。

示例

参见

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