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 less than or equal to the memory 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 that is contained in the TBoundPointerProperty<PropertyType> object points to an object at a memory address that is less than or equal to the memory address 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)