Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 579430ad1f.
PrevUpHomeNext

Function template replace

boost::compute::replace

Synopsis

// 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());

Description

Replaces each instance of old_value in the range [first, last) with new_value.

Space complexity: \Omega(1)


PrevUpHomeNext