名稱空間
變體
操作

std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::mapping-traits

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan
 
 
 
 
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();

目錄

[編輯] 引數

(無)

[編輯] 返回值

見上。

[編輯] 示例

[編輯] 參閱