We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e56a82 commit 1dde458Copy full SHA for 1dde458
1 file changed
source/mir/string_map.d
@@ -39,6 +39,12 @@ struct StringMap(T, U = uint)
39
private alias Impl = StructImpl!(T, U);
40
private Impl* implementation;
41
42
+ ///
43
+ bool opEquals()(const StringMap rhs) const
44
+ {
45
+ return keys == rhs.keys && values == rhs.values;
46
+ }
47
+
48
// // linking bug
49
// version(none)
50
// {
@@ -713,6 +719,8 @@ unittest
713
719
assert(table.values == [3, 11]);
714
720
assert(table["L"] == 3);
715
721
assert(table["val"] == 11);
722
723
+ assert(table == table);
716
724
}
717
725
718
726
private struct StructImpl(T, U = uint)
0 commit comments