HybridHashMap.get

Get value of key or defaultValue if key not present (and therefore nothrow).

struct HybridHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, Options options = Options.init)
ref inout
static if(hasValue)
inout(V)
get
()
(
in K key
,
auto ref inout(V) defaultValue
)
if (
isAllocator!Allocator
)

Return Value

Type: inout(V)

value reference iff defaultValue is an l-value.

TODO: make defaultValue lazy when that can be nothrow

Meta