std::undeclare_reachable
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <memory>
|
||
| template< class T > T* undeclare_reachable( T* p ) |
(ya que 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.
Contenido |
[editar] 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. |
[editar] 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.
[editar] 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.
[editar] Ejemplo
| This section is incomplete Reason: no example |
[editar] Ver también
| (C++11) |
declara que un objeto no puede ser reciclado Original: declares that an object can not be recycled The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |