In my project I use the std::queue class. I would like to know what happen if I do the following.
- Get a a pointer of a element inside the queue (note: a pointer and not a iterator).
- I make modification in the queue like push and pop in the queue (pop element which is not the pointed by the previous pointer)
Does my pointer still point on the same element I specify in the beginning ? Is it defined by the queue specification?