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 an old version of boost. Click here for the latest Boost documentation.
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