std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_unique, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_exhaustive, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_strided, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_unique, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_exhaustive, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_strided
来自cppreference.com
| 在标头 <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 是否满足以下特征satisfies some traits.
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();。| 本节未完成 原因:添加到 layout.reqmts 的超链接(尚未创建)。 |
参数
(无)
返回值
见上文
示例
| 本节未完成 原因:暂无示例 |
参阅
| 本节未完成 |