#ifndef __KV_H__ #define __KV_H__ #include #include #include #include "vector.hpp" /** * Value - type of the value stored in hashmap * N - number of buckets in hashmap */ template class simple_kv { private: using key_type = fix_string; using bucket_type = vector>; using value_vector = vector; bucket_type buckets[N]; value_vector values; public: simple_kv() {} void init() { values.init(); for (int i=0; i