All Range Algorithms
All Range Algorithms
A compact scan page for the ranges-based algorithm family that operates directly on ranges and supports projections.
All Range Algorithms
A compact scan page for the ranges-based algorithm family that operates directly on ranges and supports projections.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
std::ranges::findstd::ranges::find_ifstd::ranges::all_of, any_of, none_ofstd::ranges::count, count_ifstd::ranges::binary_search, lower_bound, upper_boundstd::ranges::sortstd::ranges::stable_sortstd::ranges::partial_sortstd::ranges::nth_elementstd::ranges::partitionstd::ranges::stable_partitionstd::ranges::copystd::ranges::movestd::ranges::transformstd::ranges::replacestd::ranges::removestd::ranges::remove_ifstd::ranges::uniquestd::ranges::make_heapstd::ranges::push_heapstd::ranges::pop_heapstd::ranges::set_unionstd::ranges::set_intersection#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();
}