Website Summary Files Commits Branches @commit @diff @stats
path: root / Utils / Kindle / Pair.hpp
blob: caf7fe2a8565db84f644cb6f7b637bf8eecf11f5 (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
29
#pragma once

template<class T, class U>
class Pair {
	T first;
	U second;
public:
	Pair() {
		first = T();
		second = U();
	}
	Pair(const T& fst, const U& snd) : first(fst), second(snd) {}

	const T& getFirst() const {
		return first;
	}

	const U& getSecond() const {
		return second;
	}

	void setFirst(const T& arg) {
		first = arg;
	}

	void setSecond(const U& arg) {
		second = arg;
	}
};