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

« back to all changes in this revision

Viewing changes to system/tbb/detail/remove.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/omp/detail/execution_policy.h>
 
21
 
 
22
namespace thrust
 
23
{
 
24
namespace system
 
25
{
 
26
namespace omp
 
27
{
 
28
namespace detail
 
29
{
 
30
 
 
31
template<typename ExecutionPolicy,
 
32
         typename ForwardIterator,
 
33
         typename Predicate>
 
34
  ForwardIterator remove_if(execution_policy<ExecutionPolicy> &exec,
 
35
                            ForwardIterator first,
 
36
                            ForwardIterator last,
 
37
                            Predicate pred);
 
38
 
 
39
 
 
40
template<typename ExecutionPolicy,
 
41
         typename ForwardIterator,
 
42
         typename InputIterator,
 
43
         typename Predicate>
 
44
  ForwardIterator remove_if(execution_policy<ExecutionPolicy> &exec,
 
45
                            ForwardIterator first,
 
46
                            ForwardIterator last,
 
47
                            InputIterator stencil,
 
48
                            Predicate pred);
 
49
 
 
50
 
 
51
template<typename ExecutionPolicy,
 
52
         typename InputIterator,
 
53
         typename OutputIterator,
 
54
         typename Predicate>
 
55
  OutputIterator remove_copy_if(execution_policy<ExecutionPolicy> &exec,
 
56
                                InputIterator first,
 
57
                                InputIterator last,
 
58
                                OutputIterator result,
 
59
                                Predicate pred);
 
60
 
 
61
 
 
62
template<typename ExecutionPolicy,
 
63
         typename InputIterator1,
 
64
         typename InputIterator2,
 
65
         typename OutputIterator,
 
66
         typename Predicate>
 
67
  OutputIterator remove_copy_if(execution_policy<ExecutionPolicy> &exec,
 
68
                                InputIterator1 first,
 
69
                                InputIterator1 last,
 
70
                                InputIterator2 stencil,
 
71
                                OutputIterator result,
 
72
                                Predicate pred);
 
73
 
 
74
 
 
75
} // end namespace detail
 
76
} // end namespace omp
 
77
} // end namespace system
 
78
} // end namespace thrust
 
79
 
 
80
#include <thrust/system/tbb/detail/remove.inl>
 
81