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

Function copy_if

include/boost/compute/algorithm/copy_if.hpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40/// \p predicate returns \c true to the range beginning at \p result.
41template<class InputIterator, class OutputIterator, class Predicate>
42inline OutputIterator copy_if(InputIterator first,
43 InputIterator last,
44 OutputIterator result,
45 Predicate predicate,
46 command_queue &queue = system::default_queue())
47{
48 typedef typename std::iterator_traits<InputIterator>::value_type T;
49
50 return ::boost::compute::transform_if(
51 first, last, result, identity<T>(), predicate, queue
52 );
53}
54
55} // end compute namespace
56} // end boost namespace

Callers 8

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
test_copy_if_oddFunction · 0.85
test_copy_if_in_sphereFunction · 0.85
generateMethod · 0.85
stable_partitionFunction · 0.85
remove_ifFunction · 0.85
partition_copyFunction · 0.85

Calls 1

transform_ifFunction · 0.85

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
test_copy_if_oddFunction · 0.68
test_copy_if_in_sphereFunction · 0.68