| 30 | /// Space complexity: \Omega(1) |
| 31 | template<class InputIterator, class T> |
| 32 | inline std::pair<InputIterator, InputIterator> |
| 33 | equal_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 |