Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CAutoPtrElementTraits Class

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

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

Parameters

T
The pointer type.

Remarks

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.

Requirements

Header: atlcoll.h

See Also

Class Members | CDefaultElementTraits | ATL Class Overview

Show:
© 2015 Microsoft