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