System::SmartPtr::operator= method

SmartPtr::operator=(const SmartPtr<Q>&) method

Copy-assigns SmartPtr object. Does required type conversions.

template<typename Q> SmartPtr_ & System::SmartPtr<T>::operator=(const SmartPtr<Q> &x)
ParameterDescription
QType of object pointed by x.
ParameterTypeDescription
xconst SmartPtr<Q>&Pointer to copy-assign.

ReturnValue

Reference to this object.

See Also

SmartPtr::operator=(const SmartPtr_&) method

Copy-assigns SmartPtr object.

SmartPtr_ & System::SmartPtr<T>::operator=(const SmartPtr_ &x)
ParameterTypeDescription
xconst SmartPtr_&Pointer to copy-assign.

ReturnValue

Reference to this object.

See Also

SmartPtr::operator=(Pointee_ *) method

Assigns raw pointer to SmartPtr object.

SmartPtr_ & System::SmartPtr<T>::operator=(Pointee_ *p)
ParameterTypeDescription
pPointee_ *Pointer value to assign.

ReturnValue

Reference to this object.

See Also

SmartPtr::operator=(SmartPtr_&&) method

Move-assigns SmartPtr object. x becomes unusable.

SmartPtr_ & System::SmartPtr<T>::operator=(SmartPtr_ &&x) noexcept
ParameterTypeDescription
xSmartPtr_&&Pointer to move-assign.

ReturnValue

Reference to this object.

See Also

SmartPtr::operator=(std::nullptr_t) method

Sets pointer value to nullptr.

SmartPtr_ & System::SmartPtr<T>::operator=(std::nullptr_t)

ReturnValue

Reference to this object.

See Also