StandardKeyHashingMap

StandardKeyHashingMap class template. Manages a mapping from K to V, using a standard way of hash calculation:

- If K is a primitive type (integer, floating point, character), the hash value is calculated from the raw key data using the FNV1a hash function. That means, if the keys are dynamic arrays, including strings, the array content is used as the key, not the array instance (ptr/length). - If K is a dynamic or static array of a primitive type, the hash value is calculated from the raw data of the key array content using the FNV1a hash function. - If K is a class, struct or union, it is expected to implement toHash(), which will be used. - Other key types (arrays of non-primitive types, classes/structs/unions which do not implement toHash(), pointers, function references, delegates, associative arrays) are not supported by this class template.

Constructors

this
this(size_t n, float load_factor)

Constructor.

this
this(IAllocator allocator, size_t n, float load_factor)

Constructor.

Members

Mixins

__anonymous
mixin StandardHash.toHash!(K)

Mixin of the toHash() method which is declared abstract in BucketSet.

Parameters

V

type to store in values of map

K

type to store in keys of map

Meta