concept std::partial_sum in category c++
appears as: std::partial_sum

This is an excerpt from Manning's book C++ Concurrency in Action, Second Edition.
To complete our trio of examples, we’ll go in a different direction and look at std::partial_sum. This algorithm doesn’t get a lot of press, but it’s an interesting algorithm to parallelize and highlights some additional design choices.
Before you process the final chunk, you need to get an iterator for the last element 21, which you can pass in to process_chunk 22. std::partial_sum doesn’t return a value, so you don’t need to do anything once the final chunk has been processed. The operation is complete once all the threads have finished.