37 #ifndef PCL_PGU_DEVICE_ALGORITHM_HPP_
38 #define PCL_PGU_DEVICE_ALGORITHM_HPP_
45 __device__ __host__ __forceinline__
void swap ( T& a, T& b )
50 template<
typename Iterator,
typename T,
typename BinaryPredicate>
51 __host__ __device__ Iterator
lower_bound(Iterator first, Iterator last,
const T &val, BinaryPredicate comp)
53 int len = last - first;
58 Iterator middle = first;
62 if(comp(*middle, val))
__device__ __host__ __forceinline__ void swap(T &a, T &b)
__host__ __device__ Iterator lower_bound(Iterator first, Iterator last, const T &val, BinaryPredicate comp)