OSDN Git Service

CUDA
[eos/hostdependX86LINUX64.git] / util / X86LINUX64 / cuda-6.5 / include / thrust / system / tbb / detail / sort.h
1 /*
2  *  Copyright 2008-2013 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
22 namespace thrust
23 {
24 namespace system
25 {
26 namespace tbb
27 {
28 namespace detail
29 {
30
31 template<typename DerivedPolicy,
32          typename RandomAccessIterator,
33          typename StrictWeakOrdering>
34   void stable_sort(execution_policy<DerivedPolicy> &exec,
35                    RandomAccessIterator first,
36                    RandomAccessIterator last,
37                    StrictWeakOrdering comp);
38
39 template<typename DerivedPolicy,
40          typename RandomAccessIterator1,
41          typename RandomAccessIterator2,
42          typename StrictWeakOrdering>
43   void stable_sort_by_key(execution_policy<DerivedPolicy> &exec,
44                           RandomAccessIterator1 keys_first,
45                           RandomAccessIterator1 keys_last,
46                           RandomAccessIterator2 values_first,
47                           StrictWeakOrdering comp);
48
49 } // end namespace detail
50 } // end namespace tbb
51 } // end namespace system
52 } // end namespace thrust
53
54 #include <thrust/system/tbb/detail/sort.inl>
55