Partager via


CInterfaceArray Class

This class provides methods useful when constructing an array of COM interface pointers.

template< 
   class I, 
   const IID* piid = & __uuidof( I ) 
> 
class CInterfaceArray : public CAtlArray< 
   ATL::CComQIPtr< I, piid >, 
   CComQIPtrElementTraits< 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 Constructors

Name

Description

CInterfaceArray::CInterfaceArray

The constructor for the interface array.

Remarks

This class provides a constructor and derived methods for creating an array of COM interface pointers. Use CInterfaceList when a list is required.

For more information, see ATL Collection Classes.

Inheritance Hierarchy

CAtlArray

CInterfaceArray

Requirements

Header: atlcoll.h

See Also

Reference

CAtlArray Class

CComQIPtr Class

CComQIPtrElementTraits Class

Other Resources

ATL Class Overview