how to have a queue as a parameter in c++

C++
void myFunc(std::queue<MyClass*>& myQueue)
{
   //do something
}
Source

Also in C++: