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

Function is_partitioned

include/boost/compute/algorithm/is_partitioned.hpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28/// Space complexity: \Omega(1)
29template<class InputIterator, class UnaryPredicate>
30inline bool is_partitioned(InputIterator first,
31 InputIterator last,
32 UnaryPredicate predicate,
33 command_queue &queue = system::default_queue())
34{
35 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
36 return ::boost::compute::find_if(
37 ::boost::compute::find_if_not(first,
38 last,
39 predicate,
40 queue),
41 last,
42 predicate,
43 queue) == last;
44}
45
46} // end compute namespace
47} // end boost namespace

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

find_ifFunction · 0.85
find_if_notFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68