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

Function upper_bound

include/boost/compute/algorithm/upper_bound.hpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24/// \p value.
25template<class InputIterator, class T>
26inline InputIterator
27upper_bound(InputIterator first,
28 InputIterator last,
29 const T &value,
30 command_queue &queue = system::default_queue())
31{
32 using ::boost::compute::_1;
33
34 InputIterator position =
35 detail::binary_find(first, last, _1 > value, queue);
36
37 return position;
38}
39
40} // end compute namespace
41} // end boost namespace

Callers 6

BOOST_AUTO_TEST_CASEFunction · 0.85
insertMethod · 0.85
upper_boundMethod · 0.85
insertMethod · 0.85
upper_boundMethod · 0.85
equal_rangeFunction · 0.85

Calls 1

binary_findFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68