2 * Copyright 2008-2013 NVIDIA Corporation
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <thrust/detail/config.h>
20 #include <thrust/system/tbb/detail/execution_policy.h>
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);
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);
49 } // end namespace detail
50 } // end namespace tbb
51 } // end namespace system
52 } // end namespace thrust
54 #include <thrust/system/tbb/detail/sort.inl>