KHash

template<class T, class Hash, class Eq = std::equal_to<T>, typename khint_t = uint32_t>

Destructor

~this
~this()
Undocumented in source.

Members

Functions

at
T at(khint_t x)

return bucket contents at integer offset by reference

begin
khint_t begin(void )

zero

capacity
khint_t capacity(void )

capacity (number of buckets)

end
khint_t end(void )

same as capacity / n.buckets

exist
void exist(khint_t x)

does object exist at this integer offset?

get
khint_t get(T key)

get integer offset of value for key

resize
int resize(khint_t new_n_buckets)

resize the hash table

size
khint_t size(void )

actual size (num objects)

Variables

i
khint_t i;
Undocumented in source.
k
khint_t k;
last
khint_t last;
mask
khint_t mask;
site
khint_t site;
step
khint_t step;
Undocumented in source.
x
khint_t x;
Undocumented in source.

Meta