mercredi 3 mai 2017

When should you ever use functions over functors in C++?

Functors are apparently more efficient since the compiler is more easily able to inline them, and they work much better with parametrization. When should you ever use a plain old function over a functor?

Aucun commentaire:

Enregistrer un commentaire