operator==(std::layout_left::mapping)
來自 cppreference.com
< cpp | 容器 | mdspan | layout left | mapping
template< class OtherExtents > friend constexpr bool operator==( const mapping& lhs, |
(C++23 起) | |
根據底層 extent 比較相同佈局型別的兩個佈局對映。
如果 lhs.extents() 和 rhs.extents() 都相等,則佈局對映 lhs 和 rhs 比較相等。
僅當 extents_type::rank() == OtherExtents::rank() 為 true 時,此過載才參與過載決議。
目錄 |
[編輯] 引數
lhs, rhs | - | 要比較其 extent 的佈局對映 |
[編輯] 返回值
如果 lhs.extents() == rhs.extents() 為 true,則為 true,否則為 false。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
比較此 layout_right 的佈局對映與另一個對映(函式模板) | |
將此 layout_stride 的佈局對映與其他對映進行比較(函式模板) | |
(C++23) |
比較兩個 extents 在每個維度上的底層範圍(函式) |