名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan‎ | layout left‎ | 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_right 的佈局對映與另一個對映
(函式模板) [編輯]
將此 layout_stride 的佈局對映與其他對映進行比較
(函式模板) [編輯]
比較兩個 extents 在每個維度上的底層範圍
(函式) [編輯]