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