命名空间
变体
操作

std::submdspan_mapping_result

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

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

此类模板没有基类或声明的成员,除了下面显示的成员。

[edit] 模板参数

LayoutMapping - 一种布局映射类型,满足 LayoutMapping 的要求。

[edit] 数据成员

成员名称 定义
mapping
类型为 LayoutMapping 的计算映射。它使用 [[no_unique_address]] 属性声明。
(公共成员对象)
offset
类型为 std::size_t 的计算偏移量。
(公共成员对象)

所有这些成员都具有默认成员初始化器,其中每个数据成员都被值初始化。

[edit] 参见

(C++26)
返回现有 mdspan 子集的视图
(函数模板) [编辑]
计算用于 subdmspan 的映射和数据句柄偏移量
(std::layout_left::mapping<Extents> 的公共成员函数) [编辑]
计算用于 subdmspan 的映射和数据句柄偏移量
(std::layout_right::mapping<Extents> 的公共成员函数) [编辑]
计算用于 subdmspan 的映射和数据句柄偏移量
(std::layout_stride::mapping<Extents> 的公共成员函数) [编辑]