3 ms·
There is nothing wrong with writing generic code that works both with functions and function objects. Note that stateless (empty) function objects can often be
by steerablesafe 6y ago
There is nothing wrong with writing generic code that works both with functions and function objects. Note that stateless (empty) function objects can often be more efficient than function pointers.