RehashingAA.keys

Wraps the internal associative array's keys function.

struct RehashingAA(AA : V[K], V, K)
const
keys
()

Return Value

Type: auto

A new dynamic array of all keys, as returned by the associative array's keys function.

Examples

RehashingAA!(int[string]) aa;
aa["abc"] = 123;
aa["def"] = 456;
aa["ghi"] = 789;

auto keys = aa.keys;  // allocate it once

// Order cannot be relied upon
foreach (key; [ "abc", "def", "ghi" ])
{
    assert(key in aa);
}