Comment on The Functor Pattern in C++parentComments−SamReidHughes14yWith function objects the GNU std::function does do dynamic allocation. Even for objects as small as an empty struct.
Comments
With function objects the GNU std::function does do dynamic allocation. Even for objects as small as an empty struct.