RehashingAA.opEquals

Implements opEquals for this type, comparing the internal associative array with a different one.

  1. auto opEquals(typeof(this) other)
  2. auto opEquals(AA other)
    struct RehashingAA(AA : V[K], V, K)
    opEquals
    ()

Parameters

other AA

Other associative array to compare the internal one with.

Return Value

Type: auto

true if the internal associative arrays are equal; false if not.

Examples

RehashingAA!(string[int]) aa1;
aa1[1] = "one";
aa1[2] = "two";

string[int] aa2;
aa2[1] = "one";

assert(aa1 != aa2);

aa2[2] = "two";
assert(aa1 == aa2);