VISH
0.2
|
Helper class for mapping C++ data types to objects. More...
#include </home/werner/origo/vish/memcore/TypeInfo.hpp>
Helper class for mapping C++ data types to objects.
TypeInfo is a reference wrapper class for the C++ native type_info class. It allows comparison using the C++ intrinsic type_info::before() function and is suitable as keys for a map template.
Usage especcially for constructing a maps between C++ data types to some type-specific objects:
map<TypeInfo, int> TypeMap;
TypeMap[ typeid(int) ] = 45;