HashMap.get

Get a value from the map, or return the given default value, which is lazy-evaluated.

  1. V get(K key, lazy V2 def)
    struct HashMap(K, V)
    V
    get
    const
    (
    V2
    )
    (
    K key
    ,
    lazy V2 def
    )
    if (
    is(V2 : V)
    )
    if (
    isAssignmentCopyable!(Unqual!K) &&
    isAssignmentCopyable!(Unqual!V)
    )
  2. inout(V) get(K key)

Parameters

key
Type: K

The key in the map.

def
Type: V2

A lazy default value.

Return Value

Type: V

A value from the map, or the default value.

Meta