MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pair.hpp
1
/*
2
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; see the file COPYING. If not, write to the
15
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
16
MA 02110-1301 USA.
17
*/
18
19
20
/* mySTL pair implements pair
21
*
22
*/
23
24
#ifndef mySTL_PAIR_HPP
25
#define mySTL_PAIR_HPP
26
27
28
29
namespace
mySTL {
30
31
32
template
<
typename
T1,
typename
T2>
33
struct
pair
{
34
typedef
T1
first_type
;
35
typedef
T2
second_type
;
36
37
first_type
first;
38
second_type
second;
39
40
pair
() {}
41
pair
(
const
T1
& t1,
const
T2
& t2) : first(t1), second(t2) {}
42
43
template
<
typename
U1,
typename
U2>
44
pair
(
const
pair<U1, U2>
& p) : first(p.first), second(p.second) {}
45
};
46
47
48
template
<
typename
T1,
typename
T2>
49
inline
pair<T1, T2>
make_pair(
const
T1
& a,
const
T2
& b)
50
{
51
return
pair<T1, T2>
(a, b);
52
}
53
54
55
56
}
// namespace mySTL
57
58
#endif // mySTL_PAIR_HPP
extra
yassl
taocrypt
mySTL
pair.hpp
Generated on Sat Nov 9 2013 01:24:43 for MySQL 5.6.14 Source Code Document by
1.8.1.2