array remove first element c++ code example Example: remove first element from vector c++ // Deletes the first element from vector v v.erase(v.begin());