命名空间
变体
操作

std::layout_right::mapping<Extents>::stride

来自 cppreference.cn
< cpp‎ | 容器‎ | mdspan‎ | layout_right‎ | mapping
 
 
 
 
 
constexpr index_type required_span_size() const noexcept;
(C++23 起)

返回映射所需的尺寸。

等价于 return extents().fwd-prod-of-extents(extents_type::rank());

[编辑] 返回值

映射所需的尺寸。

[编辑] 示例

[编辑] 参阅

返回映射的所需大小
(std::layout_left::mapping<Extents> 的公开成员函数) [编辑]
返回映射的所需大小
(std::layout_stride::mapping<Extents> 的公开成员函数) [编辑]
返回多维索引空间的大小
(std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy> 的公开成员函数) [编辑]