HashMap.get

Gets the value for the given key, or returns defaultValue if the given key is not present.

struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K, bool supportGC = shouldAddGCRange!K || shouldAddGCRange!V)
get
(
this This
)
(
K key
,
)

Parameters

key
Type: K

the key to look up

Return Value

Type: auto

the value indexed by key, if present, or defaultValue otherwise.

Meta