The OpenD Programming Language

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, bool storeHash = true)
get
(
this This
)
(
K key
,)

Parameters

key K

the key to look up

defaultValue V

the default value

Return Value

Type: auto

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

Meta