WeakPtr()

WeakPtr::WeakPtr(std::nullptr_t) constructor

Creates null pointer.

System::WeakPtr<T>::WeakPtr(std::nullptr_t=nullptr)

WeakPtr::WeakPtr(Pointee_ *) constructor

Creates weak pointer to given object.

System::WeakPtr<T>::WeakPtr(Pointee_ *object)

Arguments

ParameterTypeDescription
objectPointee_ *Object to create weak pointer to.

WeakPtr::WeakPtr(const SmartPtr_&) constructor

Creates weak pointer referencing same pointer ptr points to.

System::WeakPtr<T>::WeakPtr(const SmartPtr_ &ptr)

Arguments

ParameterTypeDescription
ptrconst SmartPtr_&Pointer to copy pointee value from.

WeakPtr::WeakPtr(const SmartPtr<Q>&) constructor

Creates weak pointer referencing same pointer x points to.

template<class Q,typename> System::WeakPtr<T>::WeakPtr(const SmartPtr<Q> &x)

Template parameters

ParameterDescription
QPointee type of source pointer.

Arguments

ParameterTypeDescription
xconst SmartPtr<Q>&Pointer to copy pointee value from.

WeakPtr::WeakPtr(const WeakPtr_&) constructor

Copy-constructs weak pointer.

System::WeakPtr<T>::WeakPtr(const WeakPtr_ &ptr)

Arguments

ParameterTypeDescription
ptrconst WeakPtr_&Pointer to copy pointee value from.

WeakPtr::WeakPtr(const WeakPtr<Q>&) constructor

Copy-constructs weak pointer.

template<class Q,typename> System::WeakPtr<T>::WeakPtr(const WeakPtr<Q> &x)

Template parameters

ParameterDescription
QSource pointee type.

Arguments

ParameterTypeDescription
xconst WeakPtr<Q>&Pointer to copy pointee value from.

WeakPtr::WeakPtr(SmartPtr_&&) constructor

Move-constructs weak pointer.

System::WeakPtr<T>::WeakPtr(SmartPtr_ &&x)

Arguments

ParameterTypeDescription
xSmartPtr_&&Pointer to move pointee value from.

See Also