Namespaces
Variants

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

From cppreference.net
static constexpr std:: size_t static_extent ( rank_type r ) noexcept ;
(C++23 起)

静态确定 mdspan 在秩索引 r 处的维度范围。若秩索引 r 对应动态维度,则返回 std::dynamic_extent 。等价于 return Extents :: static_extent ( r ) ;

目录

参数

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

返回值

静态扩展大小,或 std::dynamic_extent

示例

参见

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