std:: submdspan_mapping_result
From cppreference.net
|
定义于头文件
<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>
的公开成员函数)
|