Bolt
1.1
C++ template library with support for OpenCL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Bolt_Clone_master
include
bolt
cl
binary_search.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright 2012 - 2013 Advanced Micro Devices, Inc.
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_CL_BINARY_SEARCH_H )
19
#define BOLT_CL_BINARY_SEARCH_H
20
#pragma once
21
22
#include <
bolt/cl/bolt.h
>
23
#include <string>
24
29
namespace
bolt {
30
namespace
cl {
31
80
template
<
typename
ForwardIterator,
typename
T>
81
bool
binary_search
(
bolt::cl::control
&ctl,
82
ForwardIterator first,
83
ForwardIterator last,
84
const
T & value,
85
const
std::string& cl_code=
""
);
86
87
template
<
typename
ForwardIterator,
typename
T>
88
bool
binary_search
(ForwardIterator first,
89
ForwardIterator last,
90
const
T & value,
91
const
std::string& cl_code=
""
);
92
127
template
<
typename
ForwardIterator,
typename
T,
typename
StrictWeakOrdering>
128
bool
binary_search
(
bolt::cl::control
&ctl,
129
ForwardIterator first,
130
ForwardIterator last,
131
const
T & value,
132
StrictWeakOrdering comp,
133
const
std::string& cl_code=
""
);
134
135
136
template
<
typename
ForwardIterator,
typename
T,
typename
StrictWeakOrdering>
137
bool
binary_search
(ForwardIterator first,
138
ForwardIterator last,
139
const
T & value,
140
StrictWeakOrdering comp,
141
const
std::string& cl_code=
""
);
142
143
}
// end of bolt::cl namespace
144
}
// end of bolt namespace
145
146
#include <bolt/cl/detail/binary_search.inl>
147
#endif
Generated on Mon Nov 11 2013 14:17:19 for Bolt by
1.8.3