## WeakReference< T >::operator==(const WeakReference\<T\>\&) const method


Compares referenced object to another instance [WeakReference](../../weakreference/) class.

```cpp
bool System::WeakReference<T>::operator==(const WeakReference<T> &other) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | const WeakReference\<T\>\& | [Object](../../object/) compare to. |

### ReturnValue

True if compared objects reference the same object, false otherwise.

## See Also

* Class [WeakReference](../../weakreference/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## WeakReference< T >::operator==(std::nullptr_t) const method


Checks if referenced object is null.

```cpp
bool System::WeakReference<T>::operator==(std::nullptr_t) const
```


### ReturnValue

True if referenced object is null, false otherwise.

## See Also

* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
