Bolt  1.3
C++ template library with support for OpenCL
sort.h
Go to the documentation of this file.
1 /***************************************************************************
2 * © 2012,2014 Advanced Micro Devices, Inc. All rights reserved.
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 
23 #if !defined( BOLT_AMP_SORT_H )
24 #define BOLT_AMP_SORT_H
25 #pragma once
26 
27 #include <bolt/amp/bolt.h>
28 #include <bolt/amp/functional.h>
29 #include <string>
30 #include <iostream>
31 
32 
36 namespace bolt {
37  namespace amp {
38 
39 
90  template<typename RandomAccessIterator>
91  void sort(bolt::amp::control &ctl,
92  RandomAccessIterator first,
93  RandomAccessIterator last);
94 
95  template<typename RandomAccessIterator>
96  void sort(RandomAccessIterator first,
97  RandomAccessIterator last);
98 
140  template<typename RandomAccessIterator, typename StrictWeakOrdering>
141  void sort(bolt::amp::control &ctl,
142  RandomAccessIterator first,
143  RandomAccessIterator last,
144  StrictWeakOrdering comp);
145 
146 
147  template<typename RandomAccessIterator, typename StrictWeakOrdering>
148  void sort(RandomAccessIterator first,
149  RandomAccessIterator last,
150  StrictWeakOrdering comp);
151 
152 
155  }// end of bolt::amp namespace
156 }// end of bolt namespace
157 
158 #include <bolt/amp/detail/sort.inl>
159 #endif