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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Tue, 12 Jul 2005 15:34:56 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1120474891.635131.216700@g44g2000cwa.googlegroups.com> <1120575076.876798.108220@g44g2000cwa.googlegroups.com> <1120583470.429264.325450@g43g2000cwa.googlegroups.com> <42cb8d21$0$22761$9b4e6d93@newsread2.arcor-online.net> <42cd064c$0$10817$9b4e6d93@newsread4.arcor-online.net> <42cda8c4$0$22780$9b4e6d93@newsread2.arcor-online.net> <1u3hh2597i4ne$.1ryetugksbmus.dlg@40tude.net> <42ce5856$0$22762$9b4e6d93@newsread2.arcor-online.net> <1o398w3zo2zf1$.f1f7tukylueo$.dlg@40tude.net> <1qm62kbb1qwnl.ywnvsfug5p88.dlg@40tude.net> Subject: Re: GCC 4.0 Ada.Containers Cursor danger. Date: Tue, 12 Jul 2005 15:38:04 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: <0aKdnZ1hU8DttEnfRVn-og@megapath.net> NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-ywcLMcqCSJ0V0QMwUhpavo+k3MceyNm83Mhkpex1s98pl1sXjQfGd6M+f20fQ7IibCkTPUPrKUtEijV!QeLfWwcW1WxFt31xM/yZZxiSqaTUPGMQr8K335UkdRqSFivqxXXY5HhfVa+Ho+mSnsLbdBdXv9aH X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:12029 Date: 2005-07-12T15:38:04-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:1qm62kbb1qwnl.ywnvsfug5p88.dlg@40tude.net... ... > It is not, you just have replaced "changes that preserve the iteration > order and the membership" with "insignificant changes". Then passive, > one-way iterators are more or less acceptable. Cursors are much more > questionable. I don't think that there is any guarantee that iteration via cursor will actually work for an unordered (hashed) container. In practice, it usually will work, but there is nothing in the standard that requires that (unless "there are no intervening operations", but that would be a pretty useless iteration!). Cursors also have uses that have nothing to do with iteration, of course. Randy.