FMI Table
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 2 | Project Topic 7 |
src
Generic
Pair
Pair.hpp
Go to the documentation of this file.
1
#ifndef PAIR
2
#define PAIR
3
12
template
<
typename
T,
typename
U>
13
struct
Pair
{
14
T left;
15
U right;
16
17
Pair
();
18
Pair
(
const
T& left,
const
U& right);
19
};
20
21
template
<
typename
T,
typename
U>
22
Pair<T, U>::Pair
() : left(), right() {}
23
24
25
template
<
typename
T,
typename
U>
26
Pair<T, U>::Pair
(
const
T& left,
const
U& right) : left(left), right(right) {}
27
28
#endif
Pair
Stores two values of any types.
Definition:
Pair.hpp:13
Generated by
1.9.3