about summary refs log tree commit diff stats
path: root/src/server/hashtable.h
blob: 0fd0d2baa0b1e22aa80a6e654cf098c2ce353ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
};