Could I use operator == if I only implemented operator <?

Viewed 9958

I have implemented operator< for a certain object. Logically, if !(a < b) and !(b < a) it means a == b.

Is this inferred automatically? Can I use == if I only implement <?

13 Answers
Related