How to read from std vector front and remove read variable?
Is it:
v.front();
v.erase(v.begin());
How to read from std vector front and remove read variable?
Is it:
v.front();
v.erase(v.begin());
That looks about right, but consider switching to a std::deque which has a pop_front function (which won't have to move all the elements in the container)