khash.khash

Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

byKey
auto byKey()

Return an InputRange over the keys. Manipulating the hash table during iteration results in undefined behavior.

opIndex
VT opIndex(KT key)

Lookup by key

opIndexAssign
void opIndexAssign(VT val, KT key)

Assign by key

remove
void remove(KT key)

remove key/value pair

require
VT require(KT key, VT initval)

Get or create if does not exist; mirror built-in hashmap https://dlang.org/spec/hash-map.html#inserting_if_not_present

Variables

flags
khint32_t* flags;
Undocumented in source.
keys
KT* keys;
Undocumented in source.
n_buckets
khint_t n_buckets;
n_occupied
khint_t n_occupied;
size
khint_t size;
upper_bound
khint_t upper_bound;
Undocumented in source.
vals
VT* vals;
Undocumented in source.

Meta