Could I use operator == if I only implemented operator
C++ cannot infer this automatically for a couple of reasons: It doesn’t make sense for every single type to be compared with operator<, so the type may not necessarily define a operator<. This means that operator== cannot be automatically defined in terms of operator< operator< isn’t required to compare its arguments. A programmer can define … Read more