rehashingAA

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

The template parameters with which to instantiate the RehashingAA are inferred.

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);
}

See Also