Why does stl implement std::greater using functor?

  c++, c++11, c++14

I was looking at the std::greater function the other day and was very confused as to why they implemented it as a functor. Were they just showing off their c++ skills or was there an actual design decision that led to that?

Source: Windows Questions C++

LEAVE A COMMENT