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

Function for_each

include/boost/compute/algorithm/for_each.hpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48/// \see transform()
49template<class InputIterator, class UnaryFunction>
50inline UnaryFunction for_each(InputIterator first,
51 InputIterator last,
52 UnaryFunction function,
53 command_queue &queue = system::default_queue())
54{
55 detail::for_each_kernel<InputIterator, UnaryFunction> kernel(first, last, function);
56
57 kernel.exec(queue);
58
59 return function;
60}
61
62} // end compute namespace
63} // end boost namespace

Callers 6

BOOST_AUTO_TEST_CASEFunction · 0.85
make_closure_declarationFunction · 0.85
incrementMethod · 0.85
decrementMethod · 0.85
advanceMethod · 0.85
for_each_nFunction · 0.85

Calls 1

execMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68