blob: 64614ca825163356fb14b39091d44bab2625b9d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef PAIR
#define PAIR
/*! \file Pair.hpp
* \brief Stores the declaration of struct Pair
*/
/*! \brief Stores two values of any types
*
* Values are public, so no explicit getters or setters are made.
*/
template <typename T, typename U>
struct Pair {
T left;
U right;
Pair();
Pair(const T& left, const U& right);
};
template <typename T, typename U>
Pair<T, U>::Pair() : left(), right() {}
template <typename T, typename U>
Pair<T, U>::Pair(const T& left, const U& right) : left(left), right(right) {}
#endif
|