I have the following:
template<typename F, typename... Args>
void Enqueue(F&& f, Args&&... args)
{
f(args...); // want to assign this to a variable and insert into queue/vector
}
I want to store f and args (expanded or not) in a vector such that later on I can retrieve and call f(args). Does c++ supports a way to packaging it?