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 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!u17g2000yqe.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Generic Containers in Ada2005 Date: Wed, 9 Feb 2011 12:56:05 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <1vw9tbt1xma5m.cvy6d03i25d1.dlg@40tude.net> NNTP-Posting-Host: 85.1.114.19 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1297284965 28786 127.0.0.1 (9 Feb 2011 20:56:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Feb 2011 20:56:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u17g2000yqe.googlegroups.com; posting-host=85.1.114.19; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S 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.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:18127 Date: 2011-02-09T12:56:05-08:00 List-Id: On Feb 9, 9:33=A0am, "Dmitry A. Kazakov" wrote: > Depending on the number of concurrent peers accessing the queue > ends, whether the queue has fixed size, whether elements are copied or > referenced (e.g. statically allocated elements moved from queue to queue) > the implementation and interface may sufficiently vary. Exactly the same questions can be asked with regard to vectors. Yet, we do have vectors in the standard library. This means that the above concerns, even though perfectly valid, do not explain the absence of queue in the library. The authors might have done exactly the same as they did with vectors - give arbitrary (but reasonable) answers to these questions and provide the solution that fits the bill in the typical case. -- Maciej Sobczak * http://www.inspirel.com