CAutoPtrList Class

 

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

This class provides methods useful when constructing a list 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 CAutoPtrList : 
   public CAtlList<ATL::CAutoPtr<E>, CAutoPtrElementTraits<E>>

Parameters

E
The pointer type.

Public Constructors

NameDescription
CAutoPtrList::CAutoPtrListThe constructor.

This class provides a constructor and derives methods from CAtlList and CAutoPtrElementTraits to aid the creation of a list object storing smart pointers. The class CAutoPtrArray provides a similar function for an array object.

For more information, see ATL Collection Classes.

CAtlList

CAutoPtrList

Header: atlcoll.h

The constructor.

CAutoPtrList(UINT nBlockSize = 10) throw();

Parameters

nBlockSize
The block size, with a default of 10.

Remarks

The block size is a measure of the amount of memory allocated when a new element is required. Larger block sizes reduce calls to memory allocation routines, but use more resources.

CAtlList Class
CAutoPtrElementTraits Class
Class Overview

Show: