Namespaces
Variants

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

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

返回布局映射 map_ 在第 r 维的步长。等价于 return map_. stride ( r ) ;

目录

参数

r - 维度的索引

返回值

步长。

示例

参见