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

PrevUpHomeNext

Function template remove_if

boost::compute::remove_if

Synopsis

// In header: <boost/compute/algorithm/remove_if.hpp>


template<typename Iterator, typename Predicate> 
  Iterator remove_if(Iterator first, Iterator last, Predicate predicate, 
                     command_queue & queue = system::default_queue());

Description

Removes each element for which predicate returns true in the range [first, last).

Space complexity: \Omega(3n)

See Also:

remove()


PrevUpHomeNext