...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::replace
// In header: <boost/compute/algorithm/replace.hpp> template<typename Iterator, typename T> void replace(Iterator first, Iterator last, const T & old_value, const T & new_value, command_queue & queue = system::default_queue());