Could anybody explain me what is the difference between overload == and <?
==
<
For example, if I use a map:
map
std::map is an ordered container, therefore it needs an operator < to define the order of elements.
std::map
operator <
A separate operator == is not needed because it is implemented in terms of operator <, a==b being equivalent to !a
operator ==
a==b
!a