On 2010-03-06 14:55:49 -0500, Andrei Alexandrescu <[email protected]> said:

Steven Schveighoffer wrote:
How can softRemove not affect iterating ranges? What if the range is positioned on the element removed?

With GC, you can softRemove things without invalidating iterators.

What exactly is an "invalidated" iterator? Is an iterator that no longer points to the container still "valid"? Or is "valid" just another word for "memory safe"?

Wouldn't the notion of "detached" iterators/ranges be more useful?

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to