From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Newbie - HashMap!
Date: Thu, 17 Mar 2005 15:59:45 +0100
Date: 2005-03-17T15:56:12+01:00 [thread overview]
Message-ID: <1by6cbkqeexvc$.1l78w0ydrs9jd$.dlg@40tude.net> (raw)
In-Reply-To: 1111061037.535775.69180@l41g2000cwc.googlegroups.com
On 17 Mar 2005 04:03:57 -0800, fphsml@gmail.com wrote:
> What is the equivalent of the following C++ STL code?
>
> hash_map<string, string> hm;
> hm["key"] = "value";
>
> I saw a sample at
> http://www.adapower.com/index.php?Command=Class&ClassID=GNAT&CID=240
> which looks scary.
>
> I just need simple key lookup. Which library should I use?
If that scares you (I don't know why, maybe because of unbounded strings?)
then you could try:
http://www.dmitry-kazakov.de/ada/tables.htm
It uses plain string keys (though it's implementation is not a hash).
However, unbounded strings (or pointers to strings) will be needed anyway
on the "values" side.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2005-03-17 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 12:03 Newbie - HashMap! fphsml
2005-03-17 14:59 ` Dmitry A. Kazakov [this message]
2005-03-18 16:02 ` fphsml
2005-03-17 15:19 ` Georg Bauhaus
2005-03-17 16:42 ` Martin Dowie
2005-03-21 0:33 ` Matthew Heaney
2005-03-21 0:19 ` 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