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


Конструктор по умолчанию.

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

## См. также

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