std vector erase begin code example
Example 1: c++ vector pop first element
std::vector<int> vect;
vect.erase(vect.begin());
Example 2: vector erase specific element
vector.erase( vector.begin() + 3 ); // Deleting the fourth element
std::vector<int> vect;
vect.erase(vect.begin());
vector.erase( vector.begin() + 3 ); // Deleting the fourth element