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: 103376,97819f4f06661130,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d17g2000vbn.googlegroups.com!not-for-mail From: Bryan Newsgroups: comp.lang.ada Subject: Generic Containers in Ada2005 Date: Tue, 8 Feb 2011 16:43:49 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 98.124.107.116 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1297212229 8420 127.0.0.1 (9 Feb 2011 00:43:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Feb 2011 00:43:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d17g2000vbn.googlegroups.com; posting-host=98.124.107.116; posting-account=kI3R0woAAAAkETUXcbnWjzzG0TUmJmXv User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:18040 Date: 2011-02-08T16:43:49-08:00 List-Id: I'm been writing a small Ada program for a personal project. I usually write C++/STL for such projects due to my background, but because I wanted to get more practice with Ada, I decided to do the project with Ada. All has been well, except that I've been a bit surprised about generic containers. I was looking for a simple queue data structure, but I noticed there is not a standard Queue container. I managed to make a Vector work like a Queue, but it feels a bit awkward: Append() for a "push" and First_Element()+Delete_First() for a "pop". 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 simple Queue container. I'm just curious what the reasoning was behind not providing a Queue container? Is there some Ada philosophy behind this? Or is there something similar to the C++ Standard Template Library in Ada?