VISH  0.2
Public Member Functions
MemCore::TypeInfo Class Reference

Helper class for mapping C++ data types to objects. More...

#include </home/werner/origo/vish/memcore/TypeInfo.hpp>

List of all members.

Public Member Functions


Detailed Description

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;

The documentation for this class was generated from the following files: