...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::upper_bound
// In header: <boost/compute/algorithm/upper_bound.hpp> template<typename InputIterator, typename T> InputIterator upper_bound(InputIterator first, InputIterator last, const T & value, command_queue & queue = system::default_queue());