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
pair.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
19
24
#pragma once
25
#if !defined( BOLT_AMP_PAIR_H )
26
#define BOLT_AMP_PAIR_H
27
28
#include <iterator>
29
#include <type_traits>
30
#include <numeric>
31
32
namespace
bolt
33
{
34
35
namespace
amp
36
{
56
template
<
typename
T1,
typename
T2>
57
struct
pair
58
{
61
typedef
T1
first_type
;
62
65
typedef
T2
second_type
;
66
69
first_type
first
;
70
73
second_type
second
;
74
79
pair
(
void
);
80
86
pair
(
const
T1 &x,
const
T2 &y);
87
97
template
<
typename
U1,
typename
U2>
98
pair
(
const
pair<U1,U2>
&p);
99
109
template
<
typename
U1,
typename
U2>
110
pair
(
const
std::pair<U1,U2> &p);
111
112
};
// end pair
113
114
124
template
<
typename
T1,
typename
T2>
125
bool
operator==
(
const
pair<T1,T2>
&x,
const
pair<T1,T2>
&y);
126
127
137
template
<
typename
T1,
typename
T2>
138
bool
operator<(const pair<T1,T2> &x,
const
pair<T1,T2>
&y);
139
140
150
template
<
typename
T1,
typename
T2>
151
bool
operator!=
(
const
pair<T1,T2>
&x,
const
pair<T1,T2>
&y);
152
153
163
template
<
typename
T1,
typename
T2>
164
bool
operator>
(
const
pair<T1,T2>
&x,
const
pair<T1,T2>
&y);
165
166
176
template
<
typename
T1,
typename
T2>
177
bool
operator<=(const pair<T1,T2> &x,
const
pair<T1,T2>
&y);
178
179
189
template
<
typename
T1,
typename
T2>
190
bool
operator>=
(
const
pair<T1,T2>
&x,
const
pair<T1,T2>
&y);
191
192
193
203
template
<
typename
T1,
typename
T2>
204
pair<T1,T2>
make_pair
(T1 x, T2 y);
205
206
214
template
<
int
N,
typename
T>
struct
tuple_element
;
215
216
223
template
<
typename
Pair>
struct
tuple_size
;
224
225
226
232
}
//end cl
233
}
// end bolt
234
235
#include <bolt/amp/detail/pair.inl>
236
237
#endif
Generated on Wed Nov 26 2014 18:38:32 for Bolt by
1.8.3