
hi, i'm using stl maps in my project to create maps. this stl maps is datatype specific. eg map<int,int>, map <string,int>, etc.. is they any way to create a template map like map<T,T>. so that the map is compatible across any datatype being passed to it? is it possible to do in boost library by using property map concept? thanx, merlin.

On 13/12/2007, merlin antony <antonymerlin@gmail.com> wrote:
this stl maps is datatype specific. eg map<int,int>, map <string,int>, etc.. is they any way to create a template map like map<T,T>. so that the map is compatible across any datatype being passed to it?
A map to/from variants or anys might be what you're looking for. On the other hand, it's rare to really need to handle "anything", so a redesign might be a better idea. ~ Scott
participants (2)
-
merlin antony
-
Scott McMurray