Constructor.
Initializes this HashTable from another one.
Constructs the hash table from a forward range.
Initializes the hash table from a static array.
The range types for $(D_PSYMBOL HashTable).
Type of the key-value pair stored in the hash table.
The range types for $(D_PSYMBOL HashTable).
Returns a bidirectional range that iterats over the keys of this $(D_PSYMBOL HashTable).
Returns a bidirectional range that iterats over the values of this $(D_PSYMBOL HashTable).
Removes all elements.
Inserts a new element in the hash table.
Inserts a forward range of key/value pairs into the hash table.
Assigns another hash table.
Looks for key in this hash table.
Find the element with the key key.
Returns a bidirectional range whose element type is a tuple of a key and the respective value.
Inserts a new value at key or reassigns the element if key already exists in the hash table.
Sets the number of buckets in the container to at least n and rearranges all the elements according to their hash values.
Removes the element with the key key.
Returns current bucket count in the container.
Maximum amount of elements this $(D_PSYMBOL HashTable) can hold without resizing and rehashing. Note that it doesn't mean that the $(D_PSYMBOL Set) will hold exactly $(D_PSYMBOL capacity) elements. $(D_PSYMBOL capacity) tells the size of the container under a best-case distribution of elements.
Tells whether the container contains any elements.
Returns the number of elements in the container.
The maximum number of buckets the container can have.
Hash table is a data structure that stores pairs of keys and values without any particular order.
This $(D_PSYMBOL HashTable) is implemented using closed hashing. Hash collisions are resolved with linear probing.
Key should be hashable with hasher. hasher is a callable that accepts an argument of type Key and returns a hash value for it ($(D_KEYWORD size_t)).