Bolt  1.3
C++ template library with support for OpenCL
merge.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 
18 #if !defined( BOLT_AMP_MERGE_H )
19 #define BOLT_AMP_MERGE_H
20 #pragma once
21 
22 #include <bolt/amp/bolt.h>
23 #include <bolt/amp/functional.h>
24 #include <bolt/amp/device_vector.h>
25 
26 #include <string>
27 #include <iostream>
28 
35 namespace bolt {
36  namespace amp {
37 
82  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
83  OutputIterator merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2,
84  InputIterator2 last2, OutputIterator result );
85 
86  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator >
87  OutputIterator merge (bolt::amp::control &ctl,InputIterator1 first1, InputIterator1 last1,
88  InputIterator2 first2,InputIterator2 last2, OutputIterator result);
89 
123  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator,
124  typename StrictWeakCompare>
125  OutputIterator merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2,
126  InputIterator2 last2, OutputIterator result,StrictWeakCompare comp);
127 
128  template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator,
129  typename StrictWeakCompare>
130  OutputIterator merge (bolt::amp::control &ctl,InputIterator1 first1, InputIterator1 last1,
131  InputIterator2 first2,InputIterator2 last2, OutputIterator result,StrictWeakCompare comp );
132 
135  };
136 };
137 
138 #include <bolt/amp/detail/merge.inl>
139 #endif