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