Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CAutoPtrElementTraits Class

This class provides methods, static functions, and typedefs useful when creating collections of smart pointers.

Important note Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

typename T 
class CAutoPtrElementTraits : public CDefaultElementTraits< 
ATL::CAutoPtr< T> 

The pointer type.




The data type to use for adding elements to the collection class object.


The data type to use for retrieving elements from the collection class object.

This class provides methods, static functions, and typedefs for aiding the creation of collection class objects containing smart pointers. The classes CAutoPtrArray and CAutoPtrList derive from CAutoPtrElementTraits. If building a collection of smart pointers that requires vector new and delete operators, use CAutoVectorPtrElementTraits instead.

Header: atlcoll.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.