Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 2.12 KB

ccomqiptrelementtraits-class.md

File metadata and controls

70 lines (45 loc) · 2.12 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CComQIPtrElementTraits Class
CComQIPtrElementTraits Class
11/04/2016
CComQIPtrElementTraits
ATLCOLL/ATL::CComQIPtrElementTraits
ATLCOLL/ATL::CComQIPtrElementTraits::INARGTYPE
CComQIPtrElementTraits class
9df9250a-5413-4362-b133-332932a597c4

CComQIPtrElementTraits Class

This class provides methods, static functions, and typedefs useful when creating collections of COM interface pointers.

Syntax

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.

Members

Public Typedefs

Name Description
CComQIPtrElementTraits::INARGTYPE The data type to use for adding elements to the collection class object.

Remarks

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.

Inheritance Hierarchy

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CComQIPtrElementTraits

Requirements

Header: atlcoll.h

CComQIPtrElementTraits::INARGTYPE

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

typedef I* INARGTYPE;

See also

CDefaultElementTraits Class
Class Overview