Boost logo

Boost Users :

Subject: Re: [Boost-users] Multiple key types map
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-02-22 17:42:54


On Mon, Feb 22, 2010 at 3:27 PM, Michele Caini <michele.caini_at_[hidden]> wrote:
> Hi all,
> I'm looking for a map that has no matter about key types, so I can use
> such map storing int indexed objects and also, i.e., char indexed
> objects, as all-in-one container.
> It can be useful to have such type of key-type unaware containers, as we
> can find with other languages.
>
> What about existing one?

Not even other languages do that. For example, take Python, you can
only use hashable objects as a key, that is the link. As such you can
make even the normal STD map accept anything, as long as it is
hashable with a proper wrapper.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net