...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::scatter
// In header: <boost/compute/algorithm/scatter.hpp> template<typename InputIterator, typename MapIterator, typename OutputIterator> void scatter(InputIterator first, InputIterator last, MapIterator map, OutputIterator result, command_queue & queue = system::default_queue());