|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Provides a type-safe "wrapper" for objects of the pointer-map classes CMapPtrToPtr, CMapPtrToWord, CMapWordToPtr, and CMapStringToPtr.
Base class of the typed pointer map class; must be a pointer map class (CMapPtrToPtr, CMapPtrToWord, CMapWordToPtr, or CMapStringToPtr).
Class of the object used as the key to the map.
Class of the object stored in the map.
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.