Partager via


CAutoVectorPtrElementTraits Class

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

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.

Members

Public Typedefs

Name

Description

CAutoVectorPtrElementTraits::INARGTYPE

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

CAutoVectorPtrElementTraits::OUTARGTYPE

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

Remarks

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.

Inheritance Hierarchy

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CAutoVectorPtrElementTraits

Requirements

Header: atlcoll.h

See Also

Reference

CDefaultElementTraits Class

CAutoVectorPtr Class

Other Resources

ATL Class Overview