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

Function any_of

include/boost/compute/algorithm/any_of.hpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32/// \see all_of(), none_of()
33template<class InputIterator, class UnaryPredicate>
34inline bool any_of(InputIterator first,
35 InputIterator last,
36 UnaryPredicate predicate,
37 command_queue &queue = system::default_queue())
38{
39 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
40 return ::boost::compute::find_if(first, last, predicate, queue) != last;
41}
42
43} // end compute namespace
44} // end boost namespace

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
anyMethod · 0.85

Calls 1

find_ifFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68