Share via


TBoundPointerProperty.operator>(_InterfacePtr) (Compact 2013)

3/28/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 greater than the memory address of an object that another pointer points to.

Syntax

template<typename _InterfacePtr>
bool operator>(
_InterfacePtr p)

Parameters

Return Value

Returns true if the pointer contained in the TBoundPointerProperty<PropertyType> object points to an object at an address in memory that is greater than the address of the object that is 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 the function’s argument instead of an operand in a C++ expression, as shown in the following example.

CHK_BOOL(pValue1->operator >(pValue2));

Requirements

Header

XRPropertyBag.h

See Also

Reference

TBoundPointerProperty<PropertyType>
TBoundPointerProperty.operator>=(_InterfacePtr)
TBoundPointerProperty.operator<(_InterfacePtr)