411 REFERENCE · Wikibooks
C++ Language/Std/Stl/Algorithms/Querying/Accumulating
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
The std::accumulate() algorithm iterates over items, accumulating them into a summation (or into some other kind of combination, if you provide a custom callable-object for doing each accumulation step).
Additional information about the std::accumulate() algorithm (includes interactive examples)