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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bbb3407847759c29 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-14 08:23:13 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: Charles: missing default values Date: 14 Nov 2002 08:23:13 -0800 Organization: http://groups.google.com/ Message-ID: <1ec946d1.0211140823.51004ea3@posting.google.com> References: <3dd32396$0$308$bed64819@news.gradwell.net> <9HFA9.19067$6Z.12706@nwrddc01.gnilink.net> NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037290993 8369 127.0.0.1 (14 Nov 2002 16:23:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 14 Nov 2002 16:23:13 GMT Xref: archiver1.google.com comp.lang.ada:30883 Date: 2002-11-14T16:23:13+00:00 List-Id: Hyman Rosen wrote in message news:<9HFA9.19067$6Z.12706@nwrddc01.gnilink.net>... > Victor Porton wrote: > > Genereic_Find for vectors > > If Charles is meant to be an emulation of C++ STL, there is no > such thing as Generic_Find for vectors. Algorithms operate on > iterators, not containers. Charles is meant to be an Ada library, optimized for flexibility and efficiency. The C++ STL is interesting to me only to the extent that it contributes towards that goal. Yes, in the STL, find_if is a generic algorithm, not a vector member function. However, searching for items in a container is "sufficiently primitive" such that it deserved to be an operation for all containers (not just sorted associative containers, as in the STL). Also, the vector container doesn't have an iterator, for reasons explicated in another email message.