about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/hashtable.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/server/hashtable.h b/src/server/hashtable.h
new file mode 100644
index 0000000..0fd0d2b
--- /dev/null
+++ b/src/server/hashtable.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <list>
+#include <vector>
+
+template <typename K, typename V>
+class HashTable {
+public:
+    HashTable(size_t size)
+        : size { size }
+        , table(size)
+    {
+    }
+
+private:
+    size_t size;
+
+    std::vector<std::list<std::pair<K, V>>> table;
+};