Container insertion and removal
Michel Fortin
michel.fortin at michelf.com
Sat Mar 6 13:27:04 PST 2010
On 2010-03-06 14:55:49 -0500, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> 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
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list