Share via


ComPtrRef::operator!= Operator

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at ComPtrRef::operator!= Operator.

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

  
bool operator!=(  
   const Details::ComPtrRef<ComPtr<T>>& a,  
   const Details::ComPtrRef<ComPtr<U>>& b  
);  
  
bool operator!=(  
   const Details::ComPtrRef<ComPtr<T>>& a,  
   decltype(__nullptr)  
);  
  
bool operator!=(  
   decltype(__nullptr),  
   const Details::ComPtrRef<ComPtr<T>>& a  
);  
  
bool operator!=(  
   const Details::ComPtrRef<ComPtr<T>>& a,  
   void* b  
);  
  
bool operator!=(  
   void* b,  
   const Details::ComPtrRef<ComPtr<T>>& a  
);  

Parameters

a
A reference to a ComPtrRef object.

b
A reference to another ComPtrRef object, or a pointer to an anonymous object (void*).

Return Value

The first operator yields true if object a is not equal to object b; otherwise, false.

The second and third operators yield true if object a is not equal to nullptr; otherwise, false.

The fourth and fifth operators yield true if object a is not equal to object b; otherwise, false.

Remarks

Indicates whether two ComPtrRef objects are not equal.

Requirements

Header: client.h

Namespace: Microsoft::WRL

See Also

Microsoft::WRL::Details Namespace
ComPtrRef Class