rehashingAA

Convenience helper to instantiate a RehashingAA instance with an existing associative array.

The template parameters to instantiate RehashingAA is inferred from the passed associative array.

rehashingAA
(
AA : V[K]
V
K
)
(
AA aa
)

Parameters

aa AA

Original associative array.

Return Value

Type: auto

A new RehashingAA instance based on the passed associative array.

Examples

{
    auto orig = [ "abc" : 123, "def" : 456, "ghi" : 789 ];
    auto aa = rehashingAA(orig);
    assert("abc" in aa);
    assert("jkl" !in aa);
}