C++ Erase vector element by value rather than by position? [duplicate]
This question already has answers here: How do I remove an item from a stl vector with a certain value? (11 answers) Closed 5 years ago. vector<int> myVector; and lets say the values in the vector are this (in this order): 5 9 2 8 0 7 If I wanted to erase the element that … Read more