Algorithms library
Constrained algorithms
C++20 provides constrained versions of most algorithms in the namespace std::ranges
.
v: std::vector<int> = (7, 1, 4, 0, -1);
std::ranges::sort(v); // constrained algorithm
Non-modifying sequence operations
Batch operations
Search operations
Fold operations
ranges::fold_left_first_with_iter