命名空间
变体
操作

operator==(std::layout_right::mapping)

来自 cppreference.cn
< cpp‎ | 容器‎ | mdspan‎ | layout_right‎ | mapping
 
 
 
 
 
template< class OtherExtents >

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

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

根据底层 extent 比较相同布局类型的两个布局映射。

如果 lhs.extents()rhs.extents() 都相等,则布局映射 lhsrhs 比较相等。

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

目录

[编辑] 参数

lhs, rhs - 要比较其 extent 的布局映射

[编辑] 返回值

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

[编辑] 示例

[编辑] 参阅

将此 layout_left 的布局映射与其他映射进行比较
(函数模板) [编辑]
将此 layout_stride 的布局映射与其他映射进行比较
(函数模板) [编辑]
比较两个 extents 在每个维度上的底层范围
(函数) [编辑]