smart_com::operator= Method

Assigns another smart_com to this.
Syntax:
smart_com& operator=( smart_ptr op2 );
Parameter Description
op2

The smart_com to be assigned to this.

Return value:

A reference to this.

Remarks:

If the target of the assignment pointed to an object before the operation, Release will be called on that object. The object will be deleted, if this instance of smart_com held the last reference.

AddRef will be called on the object pointed to by the assigned smart_com.

See also: smart_com

<< smart_com