C++ standard algorithms are in <algorithm>, <numeric>, and memory header. The “classic” algorithms operate on iterators, while there are now also versions operating on ranges for some of the algorithms. std::partial_sum vs std::exclusive_scan vs std::inclusive_scan