M
Marco Jez
Hi everyone!
I would like to use the reference returned by typeid as key in a std::map.
Is it safe to assume that typeid(T) (where T is a type name) will always
return the same reference to the same type_info structure for a given T? My
map would look like this:
typedef std::map<const std::type_info &, ......> Type_map;
Cheers,
Marco
I would like to use the reference returned by typeid as key in a std::map.
Is it safe to assume that typeid(T) (where T is a type name) will always
return the same reference to the same type_info structure for a given T? My
map would look like this:
typedef std::map<const std::type_info &, ......> Type_map;
Cheers,
Marco