std::weak_ptr::operator=
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
weak_ptr& operator=( const weak_ptr& r ); |
(1) | (dal C++11) |
template< class Y > weak_ptr& operator=( const weak_ptr<Y>& r ); |
(2) | (dal C++11) |
template< class Y > weak_ptr& operator=( const shared_ptr<Y>& r ); |
(3) | (dal C++11) |
Sostituisce l'oggetto gestito con quello gestito da
r
. L'oggetto è in comune con r
. Se r
gestisce nessun oggetto, *this gestisce nessun oggetto troppo. Equivalente a weak_ptr<T>(r).swap(*this).Original:
Replaces the managed object with the one managed by
r
. The object is shared with r
. If r
manages no object, *this manages no object too. Equivalent to weak_ptr<T>(r).swap(*this).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica] Parametri
r | - | puntatore intelligente per condividere un oggetto con
Original: smart pointer to share an object with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica] Valore di ritorno
*this
[modifica] Eccezioni
[modifica] Note
L'implementazione può soddisfare le esigenze senza creare un oggetto temporaneo
weak_ptr
.Original:
The implementation may meet the requirements without creating a temporary
weak_ptr
object.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.