operator=()

SmartPtr::operator=(SmartPtr_&&) method

Move-assigns SmartPtr object. x becomes unusable.

SmartPtr_ & System::SmartPtr<T>::operator=(SmartPtr_ &&x) noexcept

Arguments

ParameterTypeDescription
xSmartPtr_&&Pointer to move-assign.

Return Value

Reference to this object.

SmartPtr::operator=(const SmartPtr_&) method

Copy-assigns SmartPtr object.

SmartPtr_ & System::SmartPtr<T>::operator=(const SmartPtr_ &x)

Arguments

ParameterTypeDescription
xconst SmartPtr_&Pointer to copy-assign.

Return Value

Reference to this object.

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)

Template parameters

ParameterDescription
QType of object pointed by x.

Arguments

ParameterTypeDescription
xconst SmartPtr<Q>&Pointer to copy-assign.

Return Value

Reference to this object.

SmartPtr::operator=(Pointee_ *) method

Assigns raw pointer to SmartPtr object.

SmartPtr_ & System::SmartPtr<T>::operator=(Pointee_ *p)

Arguments

ParameterTypeDescription
pPointee_ *Pointer value to assign.

Return Value

Reference to this object.

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

Sets pointer value to nullptr.

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

Return Value

Reference to this object.

See Also