MutexedAA.remove

aa.remove(key) array operation, wrapped in a mutex lock.

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

Parameters

key K

Key.

Return Value

Type: auto

Whatever aa.remove(key) returns.

Examples

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

aa[1] = "one";
assert(aa.has(1));

aa.remove(1);
assert(!aa.has(1));