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,bb7cc916bd63ab43 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news-2.dfn.de!news.uni-stuttgart.de!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 21 Jan 2009 14:22:06 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Performance of element access in Vector References: <0a8baaf0-19f7-40c0-a041-884e93fa7020@w39g2000prb.googlegroups.com> <1fp3pbmn4q3o5.1b0fk6lircbld.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4977217f$0$31878$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 21 Jan 2009 14:22:07 CET NNTP-Posting-Host: 7687ee6f.newsspool3.arcor-online.net X-Trace: DXC=HP]fVKAamSeg`45cDR8l?oMcF=Q^Z^V3h4Fo<]lROoRa^YC2XCjHcbil@HmXNX?_Gd;9OJDO8_SKfNSZ1n^B98ijQ?>bKhiV[Dm X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3469 Date: 2009-01-21T14:22:07+01:00 List-Id: Maciej Sobczak schrieb: > On 21 Sty, 09:59, "Dmitry A. Kazakov" > wrote: > >>> Only that it provide uniform ways to traverse >>> through all containers? >> Arrays do it already. > > You mean that arrays have the Iterate method? Or cursor-like interface > with No_Element sentinel? I'm afraid they don't. In a formal sense, the container types do not have an iteration interface either, because Cursor is its own type... OTOH, generic algorithms such as Generic_Anonymous_Array_Sort can be used with plain arrays or Vectors or ... A message sent recently to the Ada Comments list suggests a few new (generic) ideas.