using a queue in c++ code example Example: how to have a queue as a parameter in c++ void myFunc(std::queue<MyClass*>& myQueue) { //do something }