I stumbled across this during my experiments with C++11. I find that it is an obvious solution, but I haven\'t been able to find any other examples of it in the wild, so I\'
"Alternative to std::function for passing function as argument"
One alternative would be a function pointer (including member function pointer). But std::function is just so much nicer (IMO).
std::function