命名空间
变体
操作

std::layout_stride::mapping<Extents>::strides

来自 cppreference.cn
< cpp‎ | 容器‎ | mdspan‎ | layout_stride‎ | mapping
 
 
 
 
 
constexpr std::array<index_type, rank_> strides() const noexcept;
(C++23 起)

返回映射的步幅数组。等价于 return strides_;

目录

[编辑] 参数

(无)

[编辑] 返回值

步幅数组

[编辑] 示例

[编辑] 参阅

获取沿指定维度的步长
(public member function) [编辑]
获取沿指定维度的步长
(std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> 的公开成员函数) [编辑]