Start port
[iotcloud.git] / version2 / src / C / Pair.h
diff --git a/version2/src/C/Pair.h b/version2/src/C/Pair.h
new file mode 100644 (file)
index 0000000..4e719c4
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef PAIR_H
+#define PAIR_H
+
+template<typename A, typename B>
+class Pair {
+private:
+  A a;
+  B b;
+  
+       Pair(A _a, B _b) :
+    a(_a),
+    b(_b) {
+       }
+  
+       A getFirst() {
+               return a;
+       }
+  
+       B getSecond() {
+               return b;
+       }
+};
+
+#endif