In a recent coding review a coworker pointed out in my code that modifying a STL list might invalidate the iterators pointing to the elements in the list. That’s a good observation. I know STL map will not invalidate iterators when elements are inserted or erased from the container. But for STL list, I can’t […]
You are here: Home / Archives for list