SSOHashMapOrSet.get

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

struct SSOHashMapOrSet(K, V = void, alias Allocator = null, alias hasher = hashOf, uint smallBinMinCapacity = 1, uint capacityScaleNumerator = 2, uint capacityScaleDenominator = 1)
pragma(inline) ref @trusted
V
get
()
(
in K key
,)
if (
smallBinMinCapacity >= 1
)

Return Value

Type: V

value reference iff defaultValue is an l-value.

TODO make defaultValue lazy when that can be nothrow

Meta