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