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