Standard Range Algorithms C++20 Standard Range Algorithms C++20 Range Algos
- single range objects (containers/views) can be used as input (before C++20: only iterator pairs)
- input requirements are checked using Concepts
- don't take part in Argument Dependent Lookup (= look up a function in namespaces of its arguments)
Non-Modifying Operations Non-Modifying Non-Mod.
Binary Search of Sorted Ranges Binary Search Binary Search
Copying / Moving / Swapping Elements Copy/Move/Swap Copy/Move
Reordering Elements Reordering Reorder
Legend (Parameter Iconography)
- Container Traversal
- Minimum / Maximum
- Existence Queries (
count
,any_of
, …) - Finding Elements (
find
,find_if
, …) - Comparing Ranges (
equal
,mismatch
, …) - Sequence Reordering (
reverse
,rotate
, …) - Changing Elements (
replace
,transform
, …) - Removing Elements (
remove_if
,unique
, …) - Sorted Sequence Operations (
binary_search
, …) - Heap Operations (
make_heap
, …) - Random Number Generation
Comments…