Compares two values and returns true if they are equal.
This differs from built-in == in two respects.
1. Dynamic arrays are compared by value, even when they are struct members.
2. Floating point numbers which are NaN are considered equal. This preserves the important property that deepEquals(x, x) is true for all x.
Classes are compared in the normal way, using opEquals.
Struct to be compared with b
Struct to be compared with a
true if equal
See Implementation
Compares two values and returns true if they are equal.
This differs from built-in == in two respects.
1. Dynamic arrays are compared by value, even when they are struct members.
2. Floating point numbers which are NaN are considered equal. This preserves the important property that deepEquals(x, x) is true for all x.
Classes are compared in the normal way, using opEquals.