This program illustrates the use of the STL partial_sum() algorithm (extended version) from to find the "running totals" of integer values stored in a vector of integers and computed using newOutputValue = 2 * oldOutputValue + newInputValue and to write those computed values out to the same vector of integers. Press Enter to continue ... Here are the initial values in the vector: 1 2 3 4 5 Press Enter to continue ... And here is the same vector after the "partial sums" have been computed and the original values overwritten: 1 4 11 26 57 Press Enter to continue ... The iterator p returned by the algorithm points to the end of the ouput container. Press Enter to continue ...