code707
code707

Reputation: 1701

Purpose of having std:less (or similar function) while it just call < operator

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

Answers (0)

Related Questions