Reputation: 1701
Why is std::less
(and equivalent other function object) are needed when it just calls < operator and we can anyways overload operators?
Possible answer is in question:
Why is std::less better than "<"?
However I am not totally convinced (specially about weak ordering). Can someone explain a bit more ?
Upvotes: 5
Views: 1457