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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,97819f4f06661130 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!m13g2000yqb.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Generic Containers in Ada2005 Date: Tue, 8 Feb 2011 17:26:48 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 149.32.224.34 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1297214808 18776 127.0.0.1 (9 Feb 2011 01:26:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Feb 2011 01:26:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m13g2000yqb.googlegroups.com; posting-host=149.32.224.34; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; MS-RTC LM 8),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:18042 Date: 2011-02-08T17:26:48-08:00 List-Id: On Feb 8, 4:57=A0pm, Jeffrey Carter wrote: > On 02/08/2011 05:43 PM, Bryan wrote: > > > > > I realize that I can write a wrapper interface and create my own queue,= but > > queues are so common I can't believe we have Hashed_Maps and not a simp= le > > Queue container. > > I agree. And given that the Ada philosophy was usually to provide buildin= g > blocks that the user can combine to create more complex things, it always > surprised me that the library, when it finally came into existence, requi= res the > implementor to have implementations of hash tables and an O(log N) search= able > structure, but not to make them available to the user. (Of course, implem= entors > have always had to have unlimited-precision math libraries, but not make = them > available.) > > Personally, I'd base a queue on the lists package rather than the vectors= . > > You can find queues, as well as bounded data structures in the PragmAda R= eusable > Components: > > http://pragmada.x10hosting.com/pragmarc.htm Or look at http://www.adaic.org/ada-resources/tools-libraries/ for Booch components and Charles (Charles Container Library). Although, Ada 95 is the target, Booch components should be compatible with Ada 2005. A. Vo