MutexedAA.keys

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

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

Return Value

Type: auto

A new K[] of all the AA keys.

Examples

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

auto keys = aa.keys;
assert(keys.canFind(1));
assert(keys.canFind(2));
assert(!keys.canFind(3));

Meta