std::layout_right::mapping<Extents>::stride
来自 cppreference.cn
< cpp | container | mdspan | layout right | mapping
constexpr index_type stride(rank_type i) const noexcept; |
(自 C++23 起) | |
返回秩索引 i 处的映射步幅。等价于 return extents().rev-prod-of-extents
(i);。
当且仅当 extents_type::rank() > 0 为 true 时,此重载参与重载决议。
若 i >= extents_type::rank() 为 true,则行为未定义。
内容 |
[edit] 参数
i | - | 范围 [ 0, extents_type::rank()) 中的秩索引 |
[edit] 返回值
指定秩索引处的步幅。
[edit] 示例
此章节不完整 原因:没有示例 |
[edit] 参见
获得沿指定维度的步幅 ( std::layout_stride::mapping<Extents> 的公有成员函数) | |
获得沿指定维度的步幅 ( std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> 的公有成员函数) |