From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,93ab7fc5388e249 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-05 14:42:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3C0E1FA1.45A38A75@brighton.ac.uk> <%7sP7.49836$xS6.82296@www.newsranger.com> Subject: Re: List container strawman 1.3 Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 05 Dec 2001 17:42:43 EST Organization: http://www.newsranger.com Date: Wed, 05 Dec 2001 22:42:43 GMT Xref: archiver1.google.com comp.lang.ada:17482 Date: 2001-12-05T22:42:43+00:00 List-Id: In article , Mark Lundquist says... >Ted, why does a list need to "know" when its iterators go away? > >Did you mean to say that safe iterator needs to know when its list has gone >away? Yes in both cases. The iterator needs to know when its list goes away, so that users don't try to whack at deallocated memory using the iterator. The list itself will have to keep a mini-list of iterators to support invalidating iterators whoose pointed-to item is removed. The list needs to know when an iterator has gone away so that the iterator's entry can be removed from this internal list of iterators. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.