So I'm trying to write some sort of system to store a series of function calls.
The goal is sort of unclear, but I was thinking maybe I could have a series of member function calls stored in an object which would effect the object, and could add or remove calls from this list at runtime.
I just spent a little while trying to write a generic "function call" object that will store a function pointer of variable argument length that I can call.
And then I was figuring I could put them into a vector to be able to call them at runtime.
So I started to wonder if this was even worth doing, and I'm also wondering if there's already a data structure in the STL that might be more suited for what I'm trying to do.
Thanks for any advice, and if you need to me clarify anything let me know