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

Meta