More explanation in comments

http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Erase-Remove