comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: hashed_maps
Date: Thu, 13 Oct 2005 20:47:16 +0100
Date: 2005-10-13T20:47:16+01:00	[thread overview]
Message-ID: <m2hdblci7v.fsf@grendel.local> (raw)
In-Reply-To: 1129217108.662259.56960@o13g2000cwo.googlegroups.com

"Lucretia" <lucretia9@lycos.co.uk> writes:

> Now, I just need to know that what I'm doing with the ordered map
> isn't going to generate a linked list in which the search will end
> up linear as new C++ types are allocated as the key will be the
> address of the C++ instance. Should a hashed map be used, if so, how
> do you do this?  I've only seen examples of hashing with strings.

Matt will confirm, but I'm pretty sure that the ordered map uses a
red-black tree as its implementation. This would give you O(log n)
access time.



  reply	other threads:[~2005-10-13 19:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11 15:58 hashed_maps Lucretia
2005-10-11 17:45 ` hashed_maps Jeffrey R. Carter
2005-10-12 17:04   ` hashed_maps Lucretia
2005-10-13  5:17     ` hashed_maps Matthew Heaney
2005-10-13 14:45       ` hashed_maps Lucretia
2005-10-13 14:55         ` hashed_maps Matthew Heaney
2005-10-13 15:25           ` hashed_maps Lucretia
2005-10-13 19:47             ` Simon Wright [this message]
2005-10-14  4:35               ` hashed_maps Matthew Heaney
2005-10-14  4:41             ` hashed_maps Matthew Heaney
2005-10-17 15:48           ` hashed_maps Lucretia
2005-10-13 20:55 ` hashed_maps Björn Persson
2005-10-13 21:27   ` hashed_maps Robert A Duff
2005-10-14  4:49     ` 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