## WeakReference< T >::WeakReference() method


Default constructor.

```cpp
System::WeakReference<T>::WeakReference()
```

## See Also

* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## WeakReference< T >::WeakReference(const SmartPtr\<T\>\&) method


Initializes a new instance of the [WeakReference](../../weakreference/) class, referencing the specified object.

```cpp
System::WeakReference<T>::WeakReference(const SmartPtr<T> &data)
```


| Parameter | Type | Description |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | [Object](../../object/) to store. |

## See Also

* Class [SmartPtr](../../smartptr/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## WeakReference< T >::WeakReference(const SmartPtr\<T\>\&, bool) method


Initializes a new instance of the [WeakReference](../../weakreference/) class, referencing the specified object.

```cpp
System::WeakReference<T>::WeakReference(const SmartPtr<T> &data, bool trackResurrection)
```


| Parameter | Type | Description |
| --- | --- | --- |
| data | const SmartPtr\<T\>\& | [Object](../../object/) to store. |
| trackResurrection | bool | Ignored. |

## See Also

* Class [SmartPtr](../../smartptr/)
* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## WeakReference< T >::WeakReference(std::nullptr_t) method


Constructor from nullptr.

```cpp
System::WeakReference<T>::WeakReference(std::nullptr_t)
```

## See Also

* Class [WeakReference< T >](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
