std::submdspan_mapping_result
在标头
<mdspan> 定义 |
||
template< class LayoutMapping >
struct submdspan_mapping_result; |
(C++26 起) | |
submdspan_mapping_result
的特化是 submdspan_mapping
的各重载所返回的结果类型。
这个类模板没有基类或声明除了下述之外的成员。
模板形参
LayoutMapping | - | 满足布局映射 (LayoutMapping) 要求的布局映射类型 |
数据成员
成员名字 | 定义 |
mapping
|
LayoutMapping 类型的计算所得映射。它被声明为带有 [[no_unique_address]] 属性。(公开成员对象) |
offset
|
std::size_t 类型的计算所得偏移量。 (公开成员对象) |
所有这些成员都带有默认成员初始化式以使各个数据成员被值初始化。
参阅
(C++26)
|
返回现存 mdspan 的子集上的视图(函数模板) |
计算 subdmspan 所用的映射和数据句柄偏移( std::layout_left::mapping<Extents> 的公开成员函数) |
|
计算 subdmspan 所用的映射和数据句柄偏移( std::layout_right::mapping<Extents> 的公开成员函数) |
|
计算 subdmspan 所用的映射和数据句柄偏移( std::layout_stride::mapping<Extents> 的公开成员函数) |