vendredi 23 octobre 2020

Why does stl implement std::greater using functor? [duplicate]

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?

Aucun commentaire:

Enregistrer un commentaire