命名空间
变体
操作

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

来自 cppreference.cn
< cpp‎ | container‎ | mdspan
 
 
 
 
constexpr bool is_unique() const;
(1) (since C++23)
constexpr bool is_exhaustive() const;
(2) (since C++23)
constexpr bool is_strided() const;
(3) (since C++23)
static constexpr bool is_always_unique();
(4) (since C++23)
static constexpr bool is_always_exhaustive();
(5) (since C++23)
static constexpr bool is_always_strided();
(6) (since 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();.

目录

[编辑] 参数

(无)

[编辑] 返回值

见上文。

[编辑] 示例

[编辑] 参见