Map.get

Obtains a reference to the value mapped by key. A value for key is expected to exist in the map.

Note: Use this method if it is sure that a value for key is in the map, in other words, it would be a bug if it isn't. To look up a mapping that may or may not exist, use the 'in' operator (opBinaryRight!"in"above).

class Map(size_t V, K)
void[]
get
(
in K key
)
out (val) { assert (val.length == V); }

Parameters

key K

key to obtain the value for

Return Value

Type: void[]

pointer to the value mapped by key.

Out: The returned array is never null and has the length V.

Meta