OpenHashMap.get

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

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 inout
inout(V)
get
()
(
const scope K key
,
auto ref inout(V) defaultValue
)

Return Value

Type: inout(V)

value reference iff defaultValue is an l-value.

TODO make defaultValue lazy when that can be nothrow

Meta