34
template<typename ForwardIterator,
34
template<typename DerivedPolicy,
35
typename ForwardIterator,
35
36
typename BinaryPredicate>
36
ForwardIterator unique(tag,
37
ForwardIterator unique(execution_policy<DerivedPolicy> &exec,
37
38
ForwardIterator first,
38
39
ForwardIterator last,
39
40
BinaryPredicate binary_pred)
41
42
// omp prefers generic::unique to cpp::unique
42
return thrust::system::detail::generic::unique(tag(),first,last,binary_pred);
43
return thrust::system::detail::generic::unique(exec,first,last,binary_pred);
46
template<typename InputIterator,
47
template<typename DerivedPolicy,
48
typename InputIterator,
47
49
typename OutputIterator,
48
50
typename BinaryPredicate>
49
OutputIterator unique_copy(tag,
51
OutputIterator unique_copy(execution_policy<DerivedPolicy> &exec,
50
52
InputIterator first,
51
53
InputIterator last,
52
54
OutputIterator output,
53
55
BinaryPredicate binary_pred)
55
57
// omp prefers generic::unique_copy to cpp::unique_copy
56
return thrust::system::detail::generic::unique_copy(tag(),first,last,output,binary_pred);
58
return thrust::system::detail::generic::unique_copy(exec,first,last,output,binary_pred);
57
59
} // end unique_copy()