You cannot create containers like this in C++, since C++ does not have a "base" type that everything derives from. You would either have to use a void* (ew), or use your own classes that derive from some base class.
That implied I also need to create some primitive type wrappers that extends the base class. Is there any existing maps providing similar capabilities?