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

« back to all changes in this revision

Viewing changes to system/tbb/detail/partition.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:
 
1
/*
 
2
 *  Copyright 2008-2012 NVIDIA Corporation
 
3
 *
 
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
 
5
 *  you may not use this file except in compliance with the License.
 
6
 *  You may obtain a copy of the License at
 
7
 *
 
8
 *      http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 *  Unless required by applicable law or agreed to in writing, software
 
11
 *  distributed under the License is distributed on an "AS IS" BASIS,
 
12
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 *  See the License for the specific language governing permissions and
 
14
 *  limitations under the License.
 
15
 */
 
16
 
 
17
#pragma once
 
18
 
 
19
#include <thrust/detail/config.h>
 
20
#include <thrust/system/tbb/detail/execution_policy.h>
 
21
#include <thrust/pair.h>
 
22
 
 
23
namespace thrust
 
24
{
 
25
namespace system
 
26
{
 
27
namespace tbb
 
28
{
 
29
namespace detail
 
30
{
 
31
 
 
32
 
 
33
template<typename DerivedPolicy,
 
34
         typename ForwardIterator,
 
35
         typename Predicate>
 
36
  ForwardIterator stable_partition(execution_policy<DerivedPolicy> &exec,
 
37
                                   ForwardIterator first,
 
38
                                   ForwardIterator last,
 
39
                                   Predicate pred);
 
40
 
 
41
template<typename DerivedPolicy,
 
42
         typename ForwardIterator,
 
43
         typename InputIterator,
 
44
         typename Predicate>
 
45
  ForwardIterator stable_partition(execution_policy<DerivedPolicy> &exec,
 
46
                                   ForwardIterator first,
 
47
                                   ForwardIterator last,
 
48
                                   InputIterator stencil,
 
49
                                   Predicate pred);
 
50
 
 
51
template<typename DerivedPolicy,
 
52
         typename InputIterator,
 
53
         typename OutputIterator1,
 
54
         typename OutputIterator2,
 
55
         typename Predicate>
 
56
  thrust::pair<OutputIterator1,OutputIterator2>
 
57
    stable_partition_copy(execution_policy<DerivedPolicy> &exec,
 
58
                          InputIterator first,
 
59
                          InputIterator last,
 
60
                          OutputIterator1 out_true,
 
61
                          OutputIterator2 out_false,
 
62
                          Predicate pred);
 
63
 
 
64
 
 
65
template<typename DerivedPolicy,
 
66
         typename InputIterator1,
 
67
         typename InputIterator2,
 
68
         typename OutputIterator1,
 
69
         typename OutputIterator2,
 
70
         typename Predicate>
 
71
  thrust::pair<OutputIterator1,OutputIterator2>
 
72
    stable_partition_copy(execution_policy<DerivedPolicy> &exec,
 
73
                          InputIterator1 first,
 
74
                          InputIterator1 last,
 
75
                          InputIterator2 stencil,
 
76
                          OutputIterator1 out_true,
 
77
                          OutputIterator2 out_false,
 
78
                          Predicate pred);
 
79
 
 
80
 
 
81
} // end namespace detail
 
82
} // end namespace tbb
 
83
} // end namespace system
 
84
} // end namespace thrust
 
85
 
 
86
#include <thrust/system/tbb/detail/partition.inl>
 
87