命名空间
变体
操作

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

来自 cppreference.cn
< cpp‎ | container‎ | mdspan
 
 
 
 
constexpr index_type stride( rank_type r ) const;
(自 C++23 起)

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

内容

[编辑] 参数

r - 维度的索引

[编辑] 返回值

步幅。

[编辑] 示例

[编辑] 参见