std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>:: mapping-traits
From cppreference.net
|
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
(
)
;
。
目录 |
参数
(无)
返回值
参见上文。
示例
|
本节内容不完整
原因:缺少示例 |
参见
| 本节内容尚不完整 |