From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: Newbie - HashMap!
Date: Thu, 17 Mar 2005 16:42:01 +0000 (UTC)
Date: 2005-03-17T16:42:01+00:00 [thread overview]
Message-ID: <d1cc0p$74p$1@titan.btinternet.com> (raw)
In-Reply-To: <42399f5c$0$26540$9b4e6d93@newsread4.arcor-online.net>
Georg Bauhaus wrote:
> package Lookup_tables is
> new Ada.Containers.Hashed_Maps (Unbounded_String,
> Unbounded_String,
> Equivalent_Keys => "=",
> Hash => Hash);
>
> procedure ex is
>
> use Lookup_Tables;
>
> hm: Map;
> begin
> hm.insert(To_Unbounded_String("key"), To_Unbounded_String("value"));
> end ex;
Or you could use:
Ada.Containers.Indefinite_Hash_Maps (String, String, ...);
NB: Haven't tried this myself!...
Cheers
-- Martin
next prev parent reply other threads:[~2005-03-17 16:42 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
2005-03-18 16:02 ` fphsml
2005-03-17 15:19 ` Georg Bauhaus
2005-03-17 16:42 ` Martin Dowie [this message]
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