operator==(std::layout_right::mapping)
来自 cppreference.cn
< cpp | container | mdspan | layout right | mapping
template< class OtherExtents > friend constexpr bool operator==( const mapping& lhs, |
(since C++23) | |
比较两个相同布局类型的布局映射,基于其底层范围。
如果 lhs 和 rhs 的布局映射都 lhs.extents() 和 rhs.extents() 相等,则它们比较相等。
此重载仅在 extents_type::rank() == OtherExtents::rank() 为 true 时参与重载解析。
内容 |
[edit] 参数
lhs, rhs | - | 要比较范围的布局映射 |
[edit] 返回值
如果 lhs.extents() == rhs.extents() 为 true,则为 true,否则为 false
[edit] 示例
本节尚不完整 原因:没有示例 |
[edit] 参见
将此 layout_left 布局映射与其他映射进行比较(函数模板) | |
将此 layout_stride 布局映射与其他映射进行比较(函数模板) | |
(C++23) |
比较两个 extents 的每个维度中的底层范围(函数) |