comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@on2.com (Matthew Heaney)
Subject: Re: Charles: missing default values
Date: 14 Nov 2002 08:23:13 -0800
Date: 2002-11-14T16:23:13+00:00	[thread overview]
Message-ID: <1ec946d1.0211140823.51004ea3@posting.google.com> (raw)
In-Reply-To: 9HFA9.19067$6Z.12706@nwrddc01.gnilink.net

Hyman Rosen <hyrosen@mail.com> 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.



  parent reply	other threads:[~2002-11-14 16:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14  4:15 Charles: missing default values Victor Porton
2002-11-14  4:32 ` Hyman Rosen
2002-11-14 12:48   ` Marin David Condic
2002-11-14 15:56     ` Hyman Rosen
2002-11-14 16:23   ` Matthew Heaney [this message]
2002-11-14  7:18 ` Victor Porton
2002-11-14 16:16 ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox