how to pop_back the first element of a vector cpp code example Example: c++ vector pop first element std::vector<int> vect; vect.erase(vect.begin());