What i need to do is have a function that takes in a list of arbitrary arguments, using the parameter pack operator, and put that whole list into a queue from which I can later pass those args into another function.
This kind of thing:
void x(...args) {
queue.push(args...):
}
void y() {
z(queue.pop());
}
How would I declare this queue and how would I do this in general?