OpenHashMap.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 OpenHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false)
ref const return @trusted @nogc
const(K)
getKeyRef
(
SomeKey
)
(
const scope SomeKey key
,
ref const(K) defaultKey
)
if (
isScopedKeyType!(SomeKey)
)

Meta