RehashingAA.opIndexAssign

Assigns a value into the internal associative array. If it created a new entry, then call maybeRehash to bump the internal counter and maybe rehash.

struct RehashingAA(AA : V[K], V, K)
void
opIndexAssign
(,
K key
)

Parameters

value V

Value.

key K

Key.

Examples

RehashingAA!(int[string]) aa;
aa["abc"] = 123;
aa["def"] = 456;