System::SmartPtr::operator= méthode

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

Copie‑assigne l’objet SmartPtr. Effectue les conversions de type requises.

template<typename Q> SmartPtr_ & System::SmartPtr<T>::operator=(const SmartPtr<Q> &x)
ParamètreDescription
QType de l’objet pointé par x.
ParamètreTypeDescription
xconst SmartPtr<Q>&Pointeur pour copie‑assignation.

ReturnValue

Référence à cet objet.

Voir aussi

SmartPtr::operator=(const SmartPtr_&) method

Copie‑assigne l’objet SmartPtr.

SmartPtr_ & System::SmartPtr<T>::operator=(const SmartPtr_ &x)
ParamètreTypeDescription
xconst SmartPtr_&Pointeur pour copie‑assignation.

ReturnValue

Référence à cet objet.

Voir aussi

SmartPtr::operator=(Pointee_ *) method

Assigne un pointeur brut à l’objet SmartPtr.

SmartPtr_ & System::SmartPtr<T>::operator=(Pointee_ *p)
ParamètreTypeDescription
pPointee_ *Valeur du pointeur à assigner.

ReturnValue

Référence à cet objet.

Voir aussi

SmartPtr::operator=(SmartPtr_&&) method

Déplace‑assigne l’objet SmartPtr. x devient inutilisable.

SmartPtr_ & System::SmartPtr<T>::operator=(SmartPtr_ &&x) noexcept
ParamètreTypeDescription
xSmartPtr_&&Pointeur pour déplacement‑assignation.

ReturnValue

Référence à cet objet.

Voir aussi

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

Définit la valeur du pointeur à nullptr.

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

ReturnValue

Référence à cet objet.

Voir aussi