Namespaces
Variants

operator== (std::layout_right::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 ( ) 条件时参与重载决议。

目录

参数

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

返回值

lhs. extents ( ) == rhs. extents ( ) true 时返回 true ,否则返回 false

示例

参见

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