Thrust
|
◆ lower_bound() [1/8]
template<typename DerivedPolicy , typename ForwardIterator , typename LessThanComparable >
The algorithm's execution is parallelized as determined by
The following code snippet demonstrates how to use #include <thrust/binary_search.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> ... thrust::device_vector<int> input(5); input[0] = 0; input[1] = 2; input[2] = 5; input[3] = 7; input[4] = 8;
Referenced by thrust::mr::disjoint_unsynchronized_pool_resource< Upstream, Bookkeeper >::do_allocate(), and thrust::mr::disjoint_unsynchronized_pool_resource< Upstream, Bookkeeper >::do_deallocate(). |