## WeakReference<>::WeakReference() method


Default constructor.

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

## See Also

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


Initializes a new instance of the [WeakReference](../../weakreference/) class, referencing the specified object.

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


| Parameter | Type | Description |
| --- | --- | --- |
| data | const SmartPtr\<Object\>\& | [Object](../../object/) to store. |

## See Also

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


Initializes a new instance of the [WeakReference](../../weakreference/) class, referencing the specified object.

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


| Parameter | Type | Description |
| --- | --- | --- |
| data | const SmartPtr\<Object\>\& | [Object](../../object/) to store. |
| trackResurrection | bool | Ignored. |

## See Also

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


Constructor from nullptr.

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

## See Also

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