|
Boost Users : |
Subject: Re: [Boost-users] Multiple key types map
From: Michele Caini (michele.caini_at_[hidden])
Date: 2010-02-23 13:37:47
Il 23/02/2010 19:30, Igor R ha scritto:
>> 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.
>
> Maybe something like std::map<boost::variant<int, char>, std::string>
> can be helpful?
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Mmm... that's good! :-)
Thanks a lot, Igor!
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