comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Ada.Containers.Indefinite_Hashed_Maps
Date: Thu, 26 Apr 2007 14:12:18 +0200
Date: 2007-04-26T14:12:18+02:00	[thread overview]
Message-ID: <f0q4v5$aj2$1@cernne03.cern.ch> (raw)
In-Reply-To: <krMXh.15008$n_.5528@attbi_s21>

Jeffrey R. Carter wrote:

> if Maps.Contains (Map, Some_Key) then
>    Position := Maps.Find (Map, Key => Some_Key);

You do the same key search once for Contains and once for Find. That 
gives twice the same work. Is there a way to make the search once?

-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



  reply	other threads:[~2007-04-26 12:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25 14:13 Ada.Containers.Indefinite_Hashed_Maps markp
2007-04-25 17:43 ` Ada.Containers.Indefinite_Hashed_Maps Jeffrey R. Carter
2007-04-26 12:12   ` Maciej Sobczak [this message]
2007-04-26 12:55     ` Ada.Containers.Indefinite_Hashed_Maps Stefan Bellon
2007-04-26 16:13       ` Ada.Containers.Indefinite_Hashed_Maps Matthew Heaney
2007-04-27  4:39     ` Ada.Containers.Indefinite_Hashed_Maps Jeffrey R. Carter
2007-04-26 15:52 ` Ada.Containers.Indefinite_Hashed_Maps Matthew Heaney
2007-04-26 19:56   ` Ada.Containers.Indefinite_Hashed_Maps Matthew Heaney
2007-04-26 16:12 ` Ada.Containers.Indefinite_Hashed_Maps 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