## WeakReference< T >::operator==(const WeakReference\<T\>\&) const method


比较引用的对象与另一个 [WeakReference](../../weakreference/) 类实例。

```cpp
bool System::WeakReference<T>::operator==(const WeakReference<T> &other) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| other | const WeakReference\<T\>\& | [Object](../../object/) 进行比较。 |

### ReturnValue

如果比较的对象引用相同的对象，则为 true；否则为 false。

## 另见

* Class [WeakReference](../../weakreference/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## WeakReference< T >::operator==(std::nullptr_t) const method


检查被引用的对象是否为空。

```cpp
bool System::WeakReference<T>::operator==(std::nullptr_t) const
```


### ReturnValue

如果引用的对象为 null，则为 true；否则为 false。

## 另见

* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
 for C++](../../../)
