Namespaces
Variants

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

From cppreference.net
constexpr index_type extent ( rank_type r ) const noexcept ;
(自 C++23 起)

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

目录

参数

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

返回值

给定秩索引处的范围。

示例

参见

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