std::undeclare_reachable
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <memory>
|
||
template< class T >
T* undeclare_reachable( T* p )
|
(desde C++11) | |
Elimina el estado del objeto accesible, al que hace referencia el puntero
p, si se ha establecido previamente por std::declare_reachable. Si el objeto se declaró alcanzables varias veces, igual número de llamadas a undeclare_reachable sería necesaria para eliminar esta condición. Una vez que el objeto no se ha declarado accesible y no tiene punteros haciendo referencia a ella, puede ser reclamado por el recolector de basura o reportado como una fuga por un detector de fugas .Original:
Removes the reachable status of the object, referenced by the pointer
p, if it was previously set by std::declare_reachable. If the object was declared reachable multiple times, equal number of calls to undeclare_reachable would be needed to remove this status. Once the object is not declared reachable and has no pointers referencing it, it may be reclaimed by garbage collector or reported as a leak by a leak detector.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.
Parámetros
| p | - | un puntero a un objeto previamente declarado accesible y no destruidos desde entonces
Original: a pointer to an object previously declared reachable and not destructed since then The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
Una copia de seguridad derivado de
p .Original:
A safely-derived copy of
p.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.
Excepciones
Ninguno
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.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |
Ver también
(C++11)(eliminado en C++23) |
Declara que un objeto no puede ser reciclado. (función) |