Type to use to ensure that custom equality operator is used that ignores extra value.
| 611 | // Type to use to ensure that custom equality operator is used |
| 612 | // that ignores extra value. |
| 613 | struct CustomCmpKey { |
| 614 | int64 a; |
| 615 | int64 b; |
| 616 | CustomCmpKey(int64 v1, int64 v2) : a(v1), b(v2) {} |
| 617 | bool operator==(const CustomCmpKey& x) const { return a == x.a && b == x.b; } |
| 618 | }; |
| 619 | struct HashA { |
| 620 | size_t operator()(CustomCmpKey x) const { return x.a; } |
| 621 | }; |