命名空间
变体
操作

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

来自 cppreference.cn
< cpp‎ | 容器‎ | mdspan
 
 
 
 
constexpr index_type extent( rank_type r ) const noexcept;
(C++23 起)

返回 mdspan 在秩索引 r 处的范围。等价于 return extents().extent(r);

目录

[编辑] 参数

r - 要获取其范围大小的秩索引

[编辑] 返回值

给定秩索引处的范围。

[编辑] 示例

[编辑] 参阅

返回 extents 在特定秩索引处的动态范围大小
(std::extents<IndexType,Extents...> 的公开成员函数) [编辑]
返回 mdspan 在给定秩索引处的静态范围大小
(公开静态成员函数) [编辑]