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

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

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

目录

[编辑] 参数

(无)

[编辑] 返回值

维数。

[编辑] 示例

[编辑] 参阅

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