Bolt  1.3
C++ template library with support for OpenCL
find.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_FIND_H )
19 #define BOLT_AMP_FIND_H
20 #pragma once
21 
22 #include <bolt/amp/bolt.h>
23 #include <bolt/amp/device_vector.h>
24 
25 #include <string>
26 #include <iostream>
27 
32 namespace bolt {
33  namespace amp {
34 
143  template <typename InputIterator, typename T>
144  InputIterator find(InputIterator first,
145  InputIterator last,
146  const T& value);
147  template <typename InputIterator, typename T>
148  InputIterator find(bolt::amp::control &ctl,
149  InputIterator first,
150  InputIterator last,
151  const T& value);
152 
153 
154  template <typename InputIterator, typename Predicate>
155  InputIterator find_if(InputIterator first,
156  InputIterator last,
157  Predicate pred);
158  template <typename InputIterator, typename Predicate>
159  InputIterator find_if(bolt::amp::control &ctl,
160  InputIterator first,
161  InputIterator last,
162  Predicate pred);
163 
164 
165  template <typename InputIterator, typename Predicate>
166  InputIterator find_if_not(InputIterator first,
167  InputIterator last,
168  Predicate pred);
169  template <typename InputIterator, typename Predicate>
170  InputIterator find_if_not(bolt::amp::control &ctl,
171  InputIterator first,
172  InputIterator last,
173  Predicate pred);
174 
175  };
176 };
177 
178 #include <bolt/amp/detail/find.inl>
179 #endif