RehashingAA.opCast

Allows for casting this into the base associative array type.

struct RehashingAA(AA : V[K], V, K)
ref inout
opCast
(
T : AA
)
()

Parameters

T

Type to cast to, here the same as the type of aa.

Return Value

Type: auto ref

The internal associative array.

Examples

RehashingAA!(int[string]) aa;
aa["abc"] = 123;
auto native = cast(int[string])aa;
assert(native["abc"] == 123);

Meta