...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::partial_sum
// In header: <boost/compute/algorithm/partial_sum.hpp> template<typename InputIterator, typename OutputIterator> OutputIterator partial_sum(InputIterator first, InputIterator last, OutputIterator result, command_queue & queue = system::default_queue());