operator []= method

void operator []=(
  1. K k,
  2. V v
)

Sets the value for key k to v and notifies listeners.

Implementation

void operator []=(K k, V v) {
  value[k] = v;
  notify();
}