TBoundPointerProperty.operator!=(_InterfacePtr) (Compact 7)
3/12/2014
The != overloaded operator determines whether a pointer that is contained in a TBoundPointerProperty<PropertyType> object points to an object at a memory address that is different from the address of an object pointed to by another pointer.
Syntax
template<typename _InterfacePtr>bool operator!=(
_InterfacePtr p)
Parameters
- p
[in] Pointer to compare with the pointer that is contained in the TBoundPointerProperty<PropertyType> object.
Return Value
Returns true if the pointer contained in a TBoundPointerProperty<PropertyType> object points to an object at a memory address that is different from the address of the object pointed to by the pointer in the p parameter; otherwise, returns false.
Remarks
The _InterfacePtr type must inherit from IUnknown. To compare two pointers of the same type, the type of the pointer in the p parameter must be the type that you specified in the PropertyType template parameter of TBoundPointerProperty<PropertyType>.
When you use the != overloaded operator for a TBoundPointerProperty<PropertyType>, use the operator as a function and use the p parameter as a function argument instead of using it as an operand in a C++ expression, as follows:
CHK_BOOL(pValue1->operator !=(pValue2));
Requirements
Header |
XRPropertyBag.h |
See Also
Reference
TBoundPointerProperty<PropertyType>
TBoundPointerProperty.operator==(_InterfacePtr)