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)
@nogc @safe pure nothrow ref const
V
opIndex
(
K key
)

Parameters

key K

The key in the map.

Return Value

Type: V

A value from the map.

Meta