std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::mapping-traits
來自 cppreference.com
| constexpr bool is_unique() const; |
(1) | (C++23 起) |
| constexpr bool is_exhaustive() const; |
(2) | (C++23 起) |
| constexpr bool is_strided() const; |
(3) | (C++23 起) |
| static constexpr bool is_always_unique(); |
(4) | (C++23 起) |
| static constexpr bool is_always_exhaustive(); |
(5) | (C++23 起) |
| static constexpr bool is_always_strided(); |
(6) | (C++23 起) |
檢查 (1-3) 底層佈局對映 map_ 或 (4-6) 其型別 mapping_type 是否符合 LayoutMapping 的謂詞對映特性語義。
1-3) 設
func 為 (1) is_unique、(2) is_exhaustive 或 (3) is_strided,則等價於 return map_.func();。4-6) 設
func 為 (4) is_always_unique、(5) is_always_exhaustive 或 (6) is_always_strided,則等價於 return mapping_type::func();。目錄 |
[編輯] 引數
(無)
[編輯] 返回值
見上。
[編輯] 示例
| 本節不完整 原因:無示例 |
[編輯] 參閱
| 本節不完整 |