C++ Language/Std/Stl/Algorithms/ApplyingItemByItem/IgnoringPriorValues

Unlike the  example, this function ignores existing item-values:. The algorithm to use it is.

Additional information about item-by-item processing that ignores prior values (includes interactive examples)