~ubuntu-branches/ubuntu/utopic/libthrust/utopic

« back to all changes in this revision

Viewing changes to system/omp/detail/unique.inl

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2013-07-10 12:57:33 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130710125733-my19jic71sqsabaj
Tags: 1.7.0-1
* New upstream release.  (Closes: #715362)
* Update watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
 
33
33
 
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)
40
41
{
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);
43
44
} // end unique()
44
45
 
45
46
 
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)
54
56
{
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()
58
60
 
59
61