Low level memory management
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. |
El de nueva expresión es la única manera de crear un objeto o una matriz de objetos con una duración de almacenamiento dinámico, es decir, con una vida útil no se limita al ámbito en el que se crea. Una nueva expresión obtiene almacenamiento llamando a una función de asignación. A delete-expresión destruye un objeto más derivado o una matriz creada por una nueva expresión y llama a la función de cancelación de asignación. La asignación por defecto y desasignación funciones, además de las funciones relacionadas, tipos y objetos, se declaran en la cabecera
<new> . Original:
The de nueva expresión is the only way to create an object or an array of objects with dynamic storage duration, that is, with lifetime not restricted to the scope in which it is created. A new-expression obtains storage by calling an allocation function. A delete-expresión destroys a most derived object or an array created by a new-expression and calls the deallocation function. The default allocation and deallocation functions, along with related functions, types, and objects, are declared in the header
<new>. 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.
| Defined in header
<new> | |
Original: Functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| funciones de asignación Original: allocation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| funciones desasignación Original: deallocation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| (C++11) |
obtiene el nuevo controlador actual Original: obtains the current new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
| registra un controlador nuevo Original: registers a new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Original: Classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Excepción que se produce cuando la asignación de memoria falla Original: exception thrown when memory allocation fails The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) | |
| (C++11) |
Excepción que se produce en la asignación de la matriz con una longitud no válida Original: exception thrown on allocation of array with invalid length The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) |
| etiqueta de tipo de los utilizados para seleccionar una función no lanzamiento de la asignación Original: tag type used to select an non-throwing allocation function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (clase) | |
Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| función de tipo puntero del nuevo controlador Original: function pointer type of the new handler The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) | |
Original: Objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| un objeto de tipo nothrow_t utiliza para seleccionar una función no lanzamiento de la asignación Original: an object of type nothrow_t used to select an non-throwing allocation function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante) | |