std::mergeable
來自 cppreference.com
< cpp | 迭代器 (iterator)
定義於標頭檔案 <iterator> |
||
template< class I1, class I2, class Out, class Comp = ranges::less, class Proj1 = std::identity, class Proj2 = std::identity > |
(C++20 起) | |
mergeable
概念指定了演算法的要求,這些演算法根據 Comp
施加的嚴格弱排序,將兩個輸入範圍合併為一個輸出範圍。
[edit] 語義要求
僅當其所有子概念都已建模時,mergeable
才會被建模。
[edit] 參閱
(C++20) |
歸併兩個已排序的範圍 (演算法函式物件) |
(C++20) |
計算兩個集合的並集 (演算法函式物件) |
(C++20) |
計算兩個集合的交集 (演算法函式物件) |
(C++20) |
計算兩個集合的差集 (演算法函式物件) |
計算兩個集合的對稱差 (演算法函式物件) |