CComQIPtrElementTraits Class

 

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

For the latest documentation on Visual Studio 2017, see CComQIPtrElementTraits Class on docs.microsoft.com. This class provides methods, static functions, and typedefs useful when creating collections of COM interface pointers.

template<typename I, const IID* piid=& __uuidof(I)>  
class CComQIPtrElementTraits : 
   public CDefaultElementTraits<ATL::CComQIPtr<I, piid>>

Parameters

I
A COM interface specifying the type of pointer to be stored.

piid
A pointer to the IID of I.

Public Typedefs

NameDescription
CComQIPtrElementTraits::INARGTYPEThe data type to use for adding elements to the collection class object.

This class derives methods and provides a typedef useful when creating a collection class of CComQIPtr COM interface pointer objects. This class is utilized by both the CInterfaceArray and CInterfaceList classes.

For more information, see ATL Collection Classes.

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CComQIPtrElementTraits

Header: atlcoll.h

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

typedef I* INARGTYPE;

CDefaultElementTraits Class
Class Overview

Show: