【Non-modifying sequence operations】 |
|
for_each |
Apply function to range (function template) |
find |
Find value in range (function template) |
find_if |
Find element in range (function template) |
find_if_not |
Find element in range (negative condition) (function template) |
find_end |
Find last subsequence in range (function template) |
find_first_of |
Find element from set in range (function template) |
count |
Count appearances of value in range (function template) |
count_if |
Return number of elements in range satisfying condition (function template) |
equal |
Test whether the elements in two ranges are equal (function template) |
copy |
Copy range of elements (function template) |
copy_n |
Copy elements (function template) |
copy_if |
Copy certain elements of range (function template) |
copy_backward |
Copy range of elements backward (function template) |
swap |
Exchange values of two objects (function template) |
swap_ranges |
Exchange values of two ranges (function template) |
replace |
Replace value in range (function template) |
replace_if |
Replace values in range (function template) |
replace_copy |
Copy range replacing value (function template) |
replace_copy_if |
Copy range replacing value (function template) |
unique |
Remove consecutive duplicates in range (function template) |
unique_copy |
Copy range removing duplicates (function template) |
reverse |
Reverse range (function template) |
reverse_copy |
Copy range reversed (function template) |
rotate |
Rotate left the elements in range (function template) |
rotate_copy |
Copy range rotated left (function template) |
random_shuffle |
Randomly rearrange elements in range (function template) |
shuffle |
Randomly rearrange elements in range using generator (function template) |
Sorting:: |
|
sort |
Sort elements in range (function template) |
stable_sort |
Sort elements preserving order of equivalents (function template) |
partial_sort |
Partially sort elements in range (function template) |
partial_sort_copy |
Copy and partially sort range (function template) |
is_sorted |
Check whether range is sorted (function template) |
is_sorted_until |
Find first unsorted element in range (function template) |
nth_element |
Sort element in range (function template) |
【Binary search (operating on partitioned/sorted ranges)】 |
|
lower_bound |
Return iterator to lower bound (function template) |
upper_bound |
Return iterator to upper bound (function template) |
equal_range |
Get subrange of equal elements (function template) |
binary_search |
Test if value exists in sorted sequence (function template) |
【Min/max】 |
|
min |
Return the smallest (function template) |
max |
Return the largest (function template) |
minmax |
Return smallest and largest elements (function template) |
min_element |
Return smallest element in range (function template) |
max_element |
Return largest element in range (function template) |
minmax_element |
Return smallest and largest elements in range (function template) |