CComQIPtr::operator =

 

The assignment operator.

Syntax

      T
      * operator =(
   T* lp 
) throw( );
T* operator =(
   const CComQIPtr< T,
   piid >& lp 
) throw( );
T* operator =(
   IUnknown* lp 
) throw( );

Parameters

  • lp
    Used to initialize the interface pointer.

  • T
    A COM interface.

  • piid
    A pointer to the IID of T.

Return Value

Returns a pointer to the updated CComQIPtr object.

Requirements

Header: atlcomcli.h

See Also

CComQIPtr Class
CComPtrBase Class