Skip to main content
CAutoPtrArray Class
 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

This class provides methods useful when constructing an array of smart pointers.

System_CAPS_ICON_important.jpg Important

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

template <typename E>
class CAutoPtrArray : public CAtlArray<
                        ATL::CAutoPtr<E>,
                        CAutoPtrElementTraits<E>>

Parameters

E
The pointer type.

Public Constructors

NameDescription
CAutoPtrArray::CAutoPtrArrayThe constructor.

This class provides a constructor and derives methods from CAtlArray and CAutoPtrElementTraits to aid the creation of a collection class object storing smart pointers.

For more information, see ATL Collection Classes.

CAtlArray

CAutoPtrArray

Header: atlcoll.h

The constructor.

CAutoPtrArray() throw();

Remarks

Initializes the smart pointer array.

CAtlArray Class
CAutoPtrElementTraits Class
CAutoPtrList Class
Class Overview