HybridHashMap.getKeyRef

Get reference to key-part of stored element at key, if present, otherwise return defaultKey.

Used to implement caching inside the key part of a map.

struct HybridHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, Options options = Options.init)
ref const return @trusted @nogc
static if(hasValue)
const(K)
getKeyRef
(
SomeKey
)
(
in SomeKey key
,
ref const(K) defaultKey
)
if (
isScopedKeyType!(SomeKey)
)
if (
isAllocator!Allocator
)

Meta