title: Push_Front Pop_Back for C++ Vector
body: <p>I'm trying to keep a vector of commands so that it keeps 10 most recent.  I have a push_back and a pop_back, but how do I delete the oldest without shifting everything in a for loop?  Is erase the only way to do this?</p>