operator==(std::layout_right::mapping)
来自 cppreference.cn
< cpp | 容器 | mdspan | layout_right | mapping
template< class OtherExtents > friend constexpr bool operator==( const mapping& lhs, |
(C++23 起) | |
根据底层 extent 比较相同布局类型的两个布局映射。
如果 lhs.extents() 和 rhs.extents() 都相等,则布局映射 lhs 和 rhs 比较相等。
仅当 extents_type::rank() == OtherExtents::rank() 为 true 时,此重载才参与重载决议。
目录 |
[编辑] 参数
lhs, rhs | - | 要比较其 extent 的布局映射 |
[编辑] 返回值
如果 lhs.extents() == rhs.extents() 为 true,则返回 true,否则返回 false。
[编辑] 示例
本节不完整 原因:无示例 |
[编辑] 参阅
将此 layout_left 的布局映射与其他映射进行比较(函数模板) | |
将此 layout_stride 的布局映射与其他映射进行比较(函数模板) | |
(C++23) |
比较两个 extents 在每个维度上的底层范围(函数) |