HashMap.toHash

Calculates the hash value from key. Uses the identity since key is expected to be a suitable hash value.

This method has to accept const(hash_t) because it overrides templated base toHash (K) (in K key) method and DMD demands exact qualifier match for arguments.

class HashMap(V)
override
hash_t
toHash
(
in hash_t key
)

Parameters

key hash_t

key to hash

Return Value

Type: hash_t

the hash value that corresponds to key, which is key itself.

Meta