TwoWayMap.opIndexAssign

Adds a mapping.

  1. void opIndexAssign(KeyType a, ValueType b)
    struct TwoWayMap(A)
    void
    opIndexAssign
    out { assert (this.a_to_index[a] < this.keys_list.length); assert (this.b_to_index[b] < this.values_list.length); }
  2. void opIndexAssign(ValueType b, KeyType a)

Parameters

a KeyType

item to map to

b ValueType

item to map to

Meta