I want to use the STL container queue and store objects of my class in it.
My question is when i retrieve my object with function call front; can i copy the retrieved element (in this case an object of a class) into a temp object of a class
and then, access the members of that class?
class state{
};
state temp = myqueue.front();
temp.parameters...