MutexedAA.has

Returns whether or not the passed key is in the associative array.

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

Parameters

key K

Key.

Return Value

Type: auto

true if the key is in the associative array; false if not.

Examples

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

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