remove first thing from vector c++ code example
Example 1: c++ vector pop first element
std::vector<int> vect;
vect.erase(vect.begin());
Example 2: c++ remove element from vector
vector.erase(position) // remove certain position
// or
vector.erase(left,right) // remove positions within range