|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 class CPtrArray or CObArray.
When you use CTypedPtrArray rather than CPtrArray or CObArray, the C++ type-checking facility helps eliminate errors caused by mismatched pointer types.
In addition, the CTypedPtrArray wrapper performs much of the casting that would be required if you used CObArray or CPtrArray.
Because all CTypedPtrArray functions are inline, use of this template does not significantly affect the size or speed of your code.