how to remove the first n elements of a vector c++ code example
Example 1: c++ remove element from vector
vector.erase(position) // remove certain position
// or
vector.erase(left,right) // remove positions within range
Example 2: remove first element from vector c++
// Deletes the first element from vector v
v.erase(v.begin());