Non-modifying sequence operationsÂ
- std :: all_of : Test condition on all elements in range
- std :: any_of : Test if any element in range fulfills condition
- std :: none_of :Â Test if no elements fulfill condition
- std :: for_each :Â Apply function to range
- std :: find :Â Find value in range
- std :: find_if :Â Find element in range
- std :: find_if_not :Â Find element in range (negative condition)
- std :: find_end : Find last subsequence in range
- std :: find_first_of :Â Find element from set in range
- std :: adjacent_find :Â Find equal adjacent elements in range
- std :: count :Â Count appearances of value in range
- std :: count_if :Â Return number of elements in range satisfying condition
- std :: mismatch :Â Return first position where two ranges differ
- std::equal : Test whether the elements in two ranges are equal
- std :: is_permutation :Â Test whether range is permutation of another
- std :: search : Search range for subsequence
- std :: search_n :Â Search range for element
Modifying sequence operations
- std :: copy :Â Copy range of elements
- std :: copy_n :Â Copy elements
- std :: copy_if :Â Copy certain elements of range
- std :: copy_backward :Â Copy range of elements backward
- std::move : Move range of elements
- std :: move_backward :Â Â Move range of elements backward
- std :: swap :Â Exchange values of two objects
- std ::swap_ranges :Â Exchange values of two ranges
- std :: iter_swap :Â Exchange values of objects pointed to by two iterators
- std ::transform :Â Transform range
- std ::replace :Â Replace value in range
- std ::replace_if :Â Replace values in range
- std :: replace_copy :Â Copy range replacing value
- std :: replace_copy_if :Â Copy range replacing value
- std ::fill :Â Fill range with value
- std :: fill_n :Â Fill sequence with value
- std ::generate :Â Generate values for range with function
- std ::generate_n : Generate values for sequence with function
- std ::remove :Â Remove value from range
- std :: remove_if :Â Remove elements from range
- remove_copy :Â Copy range removing value
- remove_copy_if :Â Copy range removing values
- std ::unique :Â Remove consecutive duplicates in range
- std :: unique_copy :Â Copy range removing duplicates
- std ::reverse :Â Reverse range
- std :: reverse_copy :Â Copy range reversed
- std :: rotate :Â Rotate left the elements in range
- std :: rotate_copy : Copy range rotated left
- std :: random_shuffle :Â Randomly rearrange elements in range
- std :: shuffle :Â Randomly rearrange elements in range using generator
Partition Operations
- std :: is_partitioned :Â Test whether range is partitioned
- std :: partition : Partition range in two
- std :: stable_partition :Â Partition range in two - stable ordering
- partition_copy :Â Partition range into two
- partition_point :Â Get partition point
Sorting
- std :: sort :Â Sort elements in range
- std :: stable_sort :Â Sort elements preserving order of equivalents
- std :: partial_sort : Partially sort elements in range
- std :: partial_sort_copy :Â Copy and partially sort range
- std :: is_sorted :Â Check whether range is sorted
- std :: is_sorted_until :Â Find first unsorted element in range
- std :: nth_element : Sort element in range
Binary search (operating on partitioned/sorted ranges)
- std :: lower_bound :Â Return iterator to lower bound
- std :: upper_bound : Return iterator to upper bound
- std :: equal_range : Get subrange of equal elements
- std :: binary_search :Â Test if value exists in sorted sequence
Merge (operating on sorted ranges)
- std :: merge :Â Merge sorted ranges
- std :: inplace_merge :Â Merge consecutive sorted ranges
- std :: includes :Â Test whether the sorted range includes another sorted range
- std :: set_union :Â Union of two sorted ranges
- std :: set_intersection :Â Intersection of two sorted ranges
- std :: set_difference :Â Difference of two sorted ranges
- std :: set_symmetric_difference :Â Symmetric difference of two sorted ranges
Heap Operations
- std :: push_heap :Â Push element into heap range
- std :: pop_heap :Â Pop element from heap range
- std :: make_heap :Â Make heap from range
- std :: sort_heap :Â Sort elements of heap
- std :: is_heap : Test if range is heap
- std :: is_heap_until :Â Find first element not in heap order
- std :: max : Return the largest
- std :: minmax : Return smallest and largest elements
- std :: min_element : Return smallest element in range
- std :: max_element : Return largest element in range
- std :: minmax_element : Return smallest and largest elements in range
Other Operations
- std :: lexicographical_compare : Lexicographical less-than comparison
- std :: next_permutation :Â Transform range to next permutation
- std :: prev_permutation : Transform range to previous permutation