The actual deletion element in the C + + vector uses the std::vector::erase () method in the container Vecrot.
Std::remove () in C + + does not delete the element because the container's size () does not change, only the replacement of the element.
1.std::vector::erase ()
Function prototype: Iterator erase (iterator position); Delete the specified element
Iterator Erase (iterator first, iterator last); Delete elements within a specified range
Return value: Points to the next element that deletes the element (or range). (An iterator pointing to the new location of the element, the followed the last element, erased by the function call. The container End If the operation erased the last element in the sequence.)
Http://dig.chouti.com
http://dig.chouti.com/link/6301183
http://dig.chouti.com/link/6301185
http://dig.chouti.com/link/6301188
http://dig.chouti.com/link/6301189
http://dig.chouti.com/link/6301190
Dig.chouti.com
dig.chouti.com/link/6301183
dig.chouti.com/link/6301185
dig.chouti.com/link/6301188
dig.chouti.com/link/6301189
dig.chouti.com/link/6301190
The actual delete element in the C + + vector uses the Std::vector::erase () method in the container Vecrot