List iterator question

Started by
1 comment, last by Turold 16 years, 8 months ago
Does list iterator remain valid after some insertion or deletion operations on the list?
Advertisement
In std::list, an iterator becomes invalidated if the object it refers to is erased. Otherwise the iterator remains valid.
Cool, thx :)

This topic is closed to new replies.

Advertisement