• std::function is a STL template class that provides a very convenient wrapper to a simple function, to a functor or to a lambda expression.
For example:
• store several functions, functors or lambda expressions in a vector:
• store several functions, functors or lambda expressions in a vector: