MCPcopy Create free account
hub / github.com/boostorg/compute / remove

Function remove

include/boost/compute/algorithm/remove.hpp:32–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30/// \see remove_if()
31template<class Iterator, class T>
32inline Iterator remove(Iterator first,
33 Iterator last,
34 const T &value,
35 command_queue &queue = system::default_queue())
36{
37 BOOST_STATIC_ASSERT(is_device_iterator<Iterator>::value);
38 typedef typename std::iterator_traits<Iterator>::value_type value_type;
39
40 using ::boost::compute::_1;
41 using ::boost::compute::lambda::all;
42
43 if(vector_size<value_type>::value == 1){
44 return ::boost::compute::remove_if(first,
45 last,
46 _1 == value,
47 queue);
48 }
49 else {
50 return ::boost::compute::remove_if(first,
51 last,
52 all(_1 == value),
53 queue);
54 }
55}
56
57} // end compute namespace
58} // end boost namespace

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
mainFunction · 0.85

Calls 1

remove_ifFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68