MutexedAA.values

Returns a new dynamic array of all the values in the internal associative array.

struct MutexedAA(AA : V[K], V, K)
values
()

Return Value

Type: auto

A new V[] of all the AA values.

Examples

MutexedAA!(int[int]) aa;
aa.setup();  // important!
aa[1] = 42;
aa[2] = 99;

auto values = aa.values;
assert(values.canFind(42));
assert(values.canFind(99));
assert(!values.canFind(0));