From 40f7cc8f54d0c221a391457fd38a44d0633aa088 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Mon, 16 May 2022 14:05:08 +0300 Subject: fixed typo in folder name --- Utils/Kindle/Pair.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Utils/Kindle/Pair.hpp (limited to 'Utils/Kindle/Pair.hpp') diff --git a/Utils/Kindle/Pair.hpp b/Utils/Kindle/Pair.hpp new file mode 100644 index 0000000..caf7fe2 --- /dev/null +++ b/Utils/Kindle/Pair.hpp @@ -0,0 +1,29 @@ +#pragma once + +template +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; + } +}; \ No newline at end of file -- cgit v1.3.1-26-gb76a