StandardKeyHashingMap

StandardKeyHashingMap class template. Manages a mapping from K to ubyteV, 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. - 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

byte length of the values to store in the map, must be at least 1

K

type to store in keys of map

Meta