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

« back to all changes in this revision

Viewing changes to system/cpp/detail/unique.h

  • 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:
17
17
#pragma once
18
18
 
19
19
#include <thrust/detail/config.h>
20
 
#include <thrust/system/cpp/detail/tag.h>
 
20
#include <thrust/system/cpp/detail/execution_policy.h>
21
21
#include <thrust/pair.h>
22
22
#include <thrust/system/detail/internal/scalar/unique.h>
23
23
 
30
30
namespace detail
31
31
{
32
32
 
33
 
template<typename ForwardIterator,
 
33
template<typename DerivedPolicy,
 
34
         typename ForwardIterator,
34
35
         typename BinaryPredicate>
35
 
  ForwardIterator unique(ForwardIterator first,
 
36
  ForwardIterator unique(execution_policy<DerivedPolicy> &,
 
37
                         ForwardIterator first,
36
38
                         ForwardIterator last,
37
39
                         BinaryPredicate binary_pred)
38
40
{
39
41
  return thrust::system::detail::internal::scalar::unique(first, last, binary_pred);
40
42
}
41
43
 
42
 
template<typename InputIterator,
 
44
template<typename DerivedPolicy,
 
45
         typename InputIterator,
43
46
         typename OutputIterator,
44
47
         typename BinaryPredicate>
45
 
  OutputIterator unique_copy(tag,
 
48
  OutputIterator unique_copy(execution_policy<DerivedPolicy> &,
46
49
                             InputIterator first,
47
50
                             InputIterator last,
48
51
                             OutputIterator output,