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

Function equal_range

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

Source from the content-addressed store, hash-verified

30/// Space complexity: \Omega(1)
31template<class InputIterator, class T>
32inline std::pair<InputIterator, InputIterator>
33equal_range(InputIterator first,
34 InputIterator last,
35 const T &value,
36 command_queue &queue = system::default_queue())
37{
38 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
39 return std::make_pair(
40 ::boost::compute::lower_bound(first, last, value, queue),
41 ::boost::compute::upper_bound(first, last, value, queue)
42 );
43}
44
45} // end compute namespace
46} // end boost namespace

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

make_pairFunction · 0.85
lower_boundFunction · 0.85
upper_boundFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68