## WeakReference< T >::WeakReference() method


默认构造函数。

```cpp
System::WeakReference<T>::WeakReference()
```

## 另见

* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## WeakReference< T >::WeakReference(const SmartPtr\<T\>\&) method


初始化一个新的 [WeakReference](../../weakreference/) 类实例，引用指定的对象。

```cpp
System::WeakReference<T>::WeakReference(const SmartPtr<T> &data)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | 用于存储的 [Object](../../object/)。 |

## 另见

* Class [SmartPtr](../../smartptr/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## WeakReference< T >::WeakReference(const SmartPtr\<T\>\&, bool) method


初始化一个新的 [WeakReference](../../weakreference/) 类实例，引用指定的对象。

```cpp
System::WeakReference<T>::WeakReference(const SmartPtr<T> &data, bool trackResurrection)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | 用于存储的 [Object](../../object/)。 |
| trackResurrection | bool | 已忽略。 |

## 另见

* Class [SmartPtr](../../smartptr/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## WeakReference< T >::WeakReference(std::nullptr_t) method


使用 nullptr 的构造函数。

```cpp
System::WeakReference<T>::WeakReference(std::nullptr_t)
```

## 另见

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