isAA

Is true iff Map is map-like container, that is provides membership checking via the in operator or contains.

TODO: Move to Phobos std.traits

Members

Manifest constants

isAA
enum isAA;
Undocumented in source.

Examples

union of associative array (via keys)

alias Map = string[int];

Map x = [0 : "a", 1 : "b"];
Map y = [2 : "c"];

Map c = [0 : "a", 1 : "b", 2 : "c"];

// test associativity
assert(setUnionUpdate(x, y) == c);
assert(setUnionUpdate(y, x) == c);

Meta