Namespaces
Variants

operator== (std::layout_left::mapping)

From cppreference.net
template < class OtherExtents >

friend constexpr bool operator == ( const mapping & lhs,

const mapping < OtherExtents > & rhs ) noexcept ;
(C++23 起)

基于底层范围比较同一布局类型的两个布局映射。

布局映射 lhs rhs 在满足以下条件时被视为相等:当且仅当 lhs. extents ( ) rhs. extents ( ) 两者相等。

此重载仅当 extents_type :: rank ( ) == OtherExtents :: rank ( ) true 时参与重载决议。

目录

参数

lhs, rhs - 待比较范围的布局映射对象

返回值

true lhs. extents ( ) == rhs. extents ( ) 成立时, false 表示其他情况

示例

参见

比较 layout_right 的布局映射与其他映射
(函数模板)
比较 layout_stride 的布局映射与其他映射
(函数模板)
(C++23)
比较两个 extents 在各维度上的底层范围
(函数)