Low level memory management
Da 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. |
O expressão nova é a única forma de criar um objeto ou uma matriz de objetos com duração de armazenamento dinâmico, isto é, com tempo de vida não se restringe ao âmbito em que ele é criado. A expressão nova obtém armazenamento chamando uma função de alocação. A apagar-expressão destrói um objeto mais derivada ou uma matriz criada por uma expressão nova e chama a função desalocação. A alocação padrão e funções de desalocação, juntamente com funções relacionadas, tipos, e objetos, são declarados no cabeçalho
<new>
. Original:
The expressão nova 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 apagar-expressão 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. | |
funções de alocação 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. (função) | |
funções desalocação 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. (função) | |
(C++11) |
obtém o manipulador de corrente de novo 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. (função) |
registra um novo manipulador 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. (função) | |
Original: Classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
exceção lançada quando a alocação de memória falha 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. (classe) | |
(C++11) |
exceção lançada sobre a alocação de matriz com comprimento inválido 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. (classe) |
tipo de etiqueta usada para selecionar uma função não arremesso de alocação 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. (classe) | |
Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
tipo de função ponteiro do manipulador de novo 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. | |
um objeto do tipo nothrow_t usado para selecionar uma função não arremesso de alocação 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) |