RehashingAA.values

Wraps the internal associative array's values function.

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

Return Value

Type: auto

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

Examples

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

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

// Order cannot be relied upon
foreach (val; [ 123, 456, 789 ])
{
    import std.algorithm.searching : canFind;
    assert(values.canFind(val));
}