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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| other | const WeakReference\<T\>\& | 与 [Object](../../object/) 比较。 |

### ReturnValue

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

## 另见

* Class [WeakReference](../../weakreference/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Font 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.Font for C++](../../../)
++](../../../)
