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

来自cppreference.com
< cpp‎ | container‎ | mdspan
 
 
 
 
constexpr index_type extent( rank_type r )constnoexcept;
(C++23 起)

返回 mdspan 在秩索引 r 上的尺度。等价于 return extents().extent(r);

目录

[编辑]参数

r - 要获得尺度大小的秩索引

[编辑]返回值

给定秩索引上的尺度。

[编辑]示例

[编辑]参阅

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