MFC has two similar templated container classes: CTypedPtrArray
and CArray
.
CTypedPtrArray
is supposed to be an array of typed-pointers, while CArray
can be an array of any type (including pointers), and I see nothing in the documentation that suggest that CTypedPtrArray
is any safer/faster/easier than a CArray
.
Is there any meaningful difference between these two?
CTypedPtrArray<CPtrArray, CMyFoo*> arrayOne;
CArray<CMyFoo*, CMyFoo*> arrayTwo;