Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Most algorithms can be found in the header file algorithm.h.
Algorithms can be modified by adapters, binders and negaters.
Prefer algorithm calls over hand-written loops [1][2].
Non-standard algorithms lack the std prefix.

std::accumulate
accumulate_if
std::adjacent_find
std::all_of
std::any_of
std::binary_search
std::copy
std::copy_backward
copy_if
std::copy_if
std::copy_n
std::count
std::count_if
std::equal
std::equal_range
std::fill
std::find
std::find_end
std::find_first_of
std::find_if
std::find_if_not
std::for_each
std::generate
std::generate_n
std::includes
std::inplace_merge
std::iota
std::is_heap
std::is_heap_until
std::is_sorted
std::is_sorted_until
std::iter_swap
std::lexicographical_compare
std::lower_bound
std::make_heap
std::max
std::max_element
std::merge
std::min
std::min_element
std::minmax
std::minmax_element
std::mismatch
std::move
std::move_backward
std::next_permutation
std::none_of
std::nth_element
std::partial_sort
std::partial_sort_copy
std::partition
std::partition_copy
std::partition_point
std::pop_heap
std::prev_permutation
std::push_heap
std::random_shuffle
std::remove
std::remove_copy
std::remove_copy_if
std::remove_if
std::replace
std::replace_copy
std::replace_copy_if
std::replace_if
std::reverse
std::reverse_copy
std::rotate
std::rotate_copy
std::search
std::search_n
std::set_difference
std::set_intersection
std::set_symmetric_difference
std::set_union
std::sort
std::sort_heap
std::stable_partition
std::stable_sort
std::swap
std::swap_ranges
std::transform
std::unique
std::unique_copy
std::upper_bound
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.