_variant_t Relational Operators

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Microsoft Specific

Compare two _variant_t objects for equality or inequality.

  
      bool operator==(  
   const VARIANT& varSrc   
) const;  
bool operator==(  
   const VARIANT* pSrc   
) const;  
bool operator!=(  
   const VARIANT& varSrc   
) const;  
bool operator!=(  
   const VARIANT* pSrc   
) const;  

Parameters

varSrc
A VARIANT to be compared with the _variant_t object.

pSrc
Pointer to the VARIANT to be compared with the _variant_t object.

Returns true if comparison holds, false if not.

Compares a _variant_t object with a VARIANT, testing for equality or inequality.

END Microsoft Specific

_variant_t Class

Show: