命名空间
变体
操作

std::submdspan_mapping_result

来自 cppreference.cn
< cpp‎ | 容器‎ | mdspan
 
 
 
 
定义于头文件 <mdspan>
template< class LayoutMapping >
struct submdspan_mapping_result;
(C++26 起)

submdspan_mapping_result 的特化是 submdspan_mapping 的重载返回的结果类型。

这个类模板除了下面展示的成员外,没有基类或声明的成员。

[编辑] 模板参数

LayoutMapping(布局映射) - 一个布局映射类型,满足 LayoutMapping 的要求

[编辑] 数据成员

成员名称 (Member name) 定义
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> 的公共成员函数) [编辑]