// Deletes the first element from vector v v.erase(v.begin());
auto it = std::find(v.begin(),v.end(),3); // check that there actually is a 3 in our vector if (it != v.end()) { v.erase(it); }