std::mergeable
来自 cppreference.cn
< 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) |
计算两个集合的差集 (算法函数对象) |
计算两个集合的对称差 (算法函数对象) |