MutexedAA.opIndexAssign

aa[key] = value array assign operation, wrapped in a mutex lock.

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

Parameters

value V

Value.

key K

Key.

Return Value

Type: auto

The value assigned.

Examples

MutexedAA!(string[int]) aa;
aa.setup();  // important!

aa[1] = "one";
aa[2] = "two";