All Set Algorithms
All Set Algorithms
A compact scan page for sorted-range set algorithms from <algorithm> and their ranges-based counterparts.
All Set Algorithms
A compact scan page for sorted-range set algorithms from <algorithm> and their ranges-based counterparts.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
set_unionset_intersectionset_differenceset_symmetric_differenceincludesstd::ranges::set_unionstd::ranges::set_intersectionstd::ranges::set_differencestd::ranges::set_symmetric_differencestd::ranges::includes#include <algorithm>
#include <vector>
int main() {
std::vector<int> values{7, 2, 5, 1};
std::ranges::make_heap(values);
std::ranges::pop_heap(values);
return values.back();
}