HashMap.get

Get a value from the map, or return V.init if a value is not set for a given key.

  1. V get(K key, V2 def)
  2. V get(K key)
    struct HashMap(K, V)
    @nogc @safe pure nothrow const
    V
    get
    (
    K key
    )

Parameters

key K

The key in the map.

Return Value

Type: V

A value from the map, or the default value.

Meta