CTypedPtrMap Class
Visual Studio 2008
Provides a type-safe "wrapper" for objects of the pointer-map classes CMapPtrToPtr, CMapPtrToWord, CMapWordToPtr, and CMapStringToPtr.
template< class BASE_CLASS, class KEY, class VALUE > class CTypedPtrMap : public BASE_CLASS
When you use CTypedPtrMap, the C++ type-checking facility helps eliminate errors caused by mismatched pointer types.
Because all CTypedPtrMap functions are inline, use of this template does not significantly affect the size or speed of your code.
For more information on using CTypedPtrMap, see the articles Collections and Template-Based Classes.