RehashingAA.opBinaryRight

Wraps key in aa to the internal associative array.

struct RehashingAA(AA : V[K], V, K)
inout
opBinaryRight
(
string op : "in"
)
(
K key
)

Parameters

op

Operation, here "in".

key K

Key.

Return Value

Type: auto

A pointer to the value of the key passed, or null if it isn't in the associative array

Examples

RehashingAA!(int[string]) aa;
aa["abc"] = 123;
assert("abc" in aa);