MutexedAA.opIndex

aa[key] array retrieve operation, wrapped in a mutex lock.

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

Parameters

key K

Key.

Return Value

Type: auto

The value assigned.

Examples

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

// ...

string one = aa[1];
writeln(aa[2]);

Meta