MultiValueMap.opIndex

Convenience overload to get the first value for a given key. Note: this will throw an exception if no values exist for the given key. To avoid this, use getFirst and deal with the missing value yourself.

  1. inout(Entry)[] opIndex()
  2. ValueType opIndex(KeyType key)
    struct MultiValueMap(KeyType, ValueType, alias KeySort = (a, b) => a < b, alias KeyEquals = (a, b) => a == b)
    const
    ValueType
    opIndex
    (
    KeyType key
    )

Parameters

key KeyType

The key to get the value of.

Return Value

Type: ValueType

The first value for the given key.