CAutoVectorPtrElementTraits Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CAutoVectorPtrElementTraits Class.

This class provides methods, static functions, and typedefs useful when creating collections of smart pointers using vector new and delete operators.

System_CAPS_ICON_important.jpg Important

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

template <typename T>  
class CAutoVectorPtrElementTraits : 
   public CDefaultElementTraits<ATL::CAutoVectorPtr<T>>

Parameters

T
The pointer type.

Public Typedefs

NameDescription
CAutoVectorPtrElementTraits::INARGTYPEThe data type to use for adding elements to the collection class object.
CAutoVectorPtrElementTraits::OUTARGTYPEThe 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. Unlike CAutoPtrElementTraits, this class uses vector new and delete operators.

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CAutoVectorPtrElementTraits

Header: atlcoll.h

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

typedef CAutoVectorPtr<T>& INARGTYPE;

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

typedef T *& OUTARGTYPE;

CDefaultElementTraits Class
CAutoVectorPtr Class
Class Overview

Show: