|
Boost Users : |
Subject: Re: [Boost-users] Multiple key types map
From: Igore Dmit. (trueorca_at_[hidden])
Date: 2010-02-26 11:15:40
Could one use boost::any as a key?
2010/2/23 Michele Caini <michele.caini_at_[hidden]>
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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