std::weak_ptr::use_count
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. |
long use_count()const; | (dal C++11) | |
Restituisce il numero di istanze
shared_ptr
che la proprietà quota di oggetto gestito, o 0 se l'oggetto gestito è già stato eliminato, cioè *this è vuoto.Original:
Returns the number of
shared_ptr
instances that share ownership of the managed object, or 0 if the managed object has already been deleted, i.e. *this is empty.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
(Nessuno)
Original:
(none)
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.
[modifica]Valore di ritorno
Il numero di istanze
shored_ptr
condividere la proprietà dell'oggetto gestito.Original:
The number of
shored_ptr
instances sharing the ownership of the managed 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.
[modifica]Eccezioni
[modifica]Note
expired()
può essere più veloce use_count()
.Original:
expired()
may be faster than use_count()
.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.
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
Verifica se l'oggetto di riferimento è già stato cancellato Original: checks whether the referenced object was already deleted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |