Bolt
1.3
C++ template library with support for OpenCL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
bgldinar16
Jenkins_FS_Root
workspace
Bolt_Clone_Local_develop
include
bolt
amp
binary_search.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_BINARY_SEARCH_H )
19
#define BOLT_AMP_BINARY_SEARCH_H
20
#pragma once
21
22
#include <
bolt/amp/bolt.h
>
23
#include <string>
24
29
namespace
bolt {
30
namespace
amp {
31
77
template
<
typename
ForwardIterator,
typename
T>
78
bool
binary_search
(
bolt::amp::control
&ctl,
79
ForwardIterator first,
80
ForwardIterator last,
81
const
T & value);
82
83
template
<
typename
ForwardIterator,
typename
T>
84
bool
binary_search
(ForwardIterator first,
85
ForwardIterator last,
86
const
T & value);
87
119
template
<
typename
ForwardIterator,
typename
T,
typename
StrictWeakOrdering>
120
bool
binary_search
(
bolt::amp::control
&ctl,
121
ForwardIterator first,
122
ForwardIterator last,
123
const
T & value,
124
StrictWeakOrdering comp);
125
126
127
template
<
typename
ForwardIterator,
typename
T,
typename
StrictWeakOrdering>
128
bool
binary_search
(ForwardIterator first,
129
ForwardIterator last,
130
const
T & value,
131
StrictWeakOrdering comp);
132
133
}
// end of bolt::amp namespace
134
}
// end of bolt namespace
135
136
#include <bolt/amp/detail/binary_search.inl>
137
#endif
Generated on Wed Nov 26 2014 18:38:31 for Bolt by
1.8.3