
22 Feb
2010
22 Feb
'10
10:42 p.m.
On Mon, Feb 22, 2010 at 3:27 PM, Michele Caini
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.