cppreference.com
Create account
Log in
Namespaces
Template
Discussion
Variants
Views
View
Edit
History
Actions
Template:cpp/algorithm/ranges/navbar content
From cppreference.com
All names in this menu belong to namespace
std::ranges
Non-modifying sequence operations
all_of
any_of
none_of
for_each
for_each_n
count
count_if
adjacent_find
mismatch
equal
lexicographical_compare
contains
contains_subrange
(C++23)
(C++23)
find
find_if
find_if_not
find_last
find_last_if
find_last_if_not
(C++23)
(C++23)
(C++23)
find_end
find_first_of
search
search_n
starts_with
(C++23)
ends_with
(C++23)
Modifying sequence operations
copy
copy_if
copy_n
copy_backward
move
move_backward
shift_left
shift_right
(C++23)
(C++23)
fill
fill_n
generate
generate_n
transform
swap_ranges
shuffle
sample
remove
remove_if
replace
replace_if
reverse
rotate
remove_copy
remove_copy_if
unique
replace_copy
replace_copy_if
reverse_copy
rotate_copy
unique_copy
Partitioning operations
is_partitioned
partition_point
partition
partition_copy
stable_partition
Sorting operations
is_sorted
is_sorted_until
sort
stable_sort
partial_sort
nth_element
partial_sort_copy
Binary search operations (on sorted ranges)
lower_bound
upper_bound
binary_search
equal_range
Set operations (on sorted ranges)
merge
inplace_merge
set_difference
set_intersection
set_union
includes
set_symmetric_difference
Heap operations
is_heap
is_heap_until
make_heap
sort_heap
push_heap
pop_heap
Minimum/maximum operations
max
max_element
min
min_element
minmax
minmax_element
clamp
Permutation operations
is_permutation
next_permutation
prev_permutation
Fold operations
fold_left
(C++23)
fold_left_first
(C++23)
fold_right
(C++23)
fold_right_last
(C++23)
fold_left_with_iter
(C++23)
fold_left_first_with_iter
(C++23)
Numeric operations
iota
(C++23)
Random number generation
generate_random
(C++26)
Operations on uninitialized storage
construct_at
destroy
destroy_n
destroy_at
uninitialized_copy
uninitialized_move
uninitialized_fill
uninitialized_copy_n
uninitialized_move_n
uninitialized_fill_n
uninitialized_default_construct
uninitialized_default_construct_n
uninitialized_value_construct
uninitialized_value_construct_n
Return types
in_fun_result
in_in_result
in_found_result
in_out_result
in_in_out_result
in_out_out_result
min_max_result
out_value_result
(C++23)
in_value_result
(C++23)