Website Summary Files Commits Branches @commit @diff @stats
path: root / Utils / Kindle / Pair.hpp
diff options
context:
space:
mode:
Commit40f7cc8f54d0c221a391457fd38a44d0633aa088 (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-05-16 14:05:08 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-05-16 14:05:08 +0300
Files29fecbef2da1e832f3f8e9e23db6fffe35d7ddc6 /Utils/Kindle/Pair.hpp
Object-oriented_programming_FMI-40f7cc8f54d0c221a391457fd38a44d0633aa088.tar
Object-oriented_programming_FMI-40f7cc8f54d0c221a391457fd38a44d0633aa088.tar.gz
Object-oriented_programming_FMI-40f7cc8f54d0c221a391457fd38a44d0633aa088.zip
Parentde7b4d3f7ac3ecd42ca336b0d477712a462d27ee (diff)
fixed typo in folder name
1 files changed, 29 insertions, 0 deletions
-rw-r--r--Utils/Kindle/Pair.hpp29
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 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;
+ }
+}; \ No newline at end of file