std::submdspan_mapping_result
來自 cppreference.com
| 定義於標頭檔案 <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> 的公共成員函式) |