Functor Object Accessors
 Functor Objects

Detailed Description

Functors are inteded to be passed as arguments to predicate algorithms. Ivory tower academics make much of this capability, no doubt happy that C++ can now be made to look just like their precious lisp. In practice, however, functors and predicate algorithms are mostly useless. An iterative solution using foreach is usually far simpler to write and to maintain. Furthermore, functional programming in C++ often generates much bloat and slowness, which is difficult to avoid with any but the most primitive functors. Try them if you wish, now and then, but compare with an iterative solution to see if the compiler really can see through all your functional trickery.

Generated on Mon Sep 28 2015 17:58:50 for uSTL by Doxygen 1.8.10