There shouldn't be. Period. You SHOULDN'T be able to do anything to anything in the queue except for pushing to the back and popping from the front (OK and looking at the front).
...
...
HOWEVER...
For an STL queue, there is a function called back() that will return either a const reference to the last element or a mutable reference to the last element (which would be nice in your case). There ya go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.