HashMap.opIndex

Retrieve a value from the map.

If a value is not set for the given key, a RangeError will be thrown.

struct HashMap(K, V)
ref
inout(V)
opIndex
inout
(
K key
)
if (
isAssignmentCopyable!(Unqual!K) &&
isAssignmentCopyable!(Unqual!V)
)

Parameters

key
Type: K

The key in the map.

Return Value

Type: inout(V)

A value from the map.

Meta