std::allocator::deallocate
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. |
Definido no cabeçalho <memory>
|
||
void deallocate(pointer p, size_type n); |
||
Desaloca o armazenamento referenciado pelo
p
ponteiro, que deve ser um ponteiro obtido por uma chamada anterior a allocate()
. O n
argumento deve ser igual ao segundo argumento da chamada para allocate()
que originalmente produzido p
.Original:
Deallocates the storage referenced by the pointer
p
, which must be a pointer obtained by an earlier call to allocate()
. The argument n
must be equal to the second argument of the call to allocate()
that originally produced 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.
::operator delete(void*) chama, mas é especificado quando e como é chamado.
Original:
Calls ::operator delete(void*), but it is unspecified when and how it is called.
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] Parâmetros
p | - | ponteiro obtido
allocate() Original: pointer obtained from allocate() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
n | - | número de objetos anteriormente passado para
allocate() Original: number of objects earlier passed to allocate() 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
(Nenhum)
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] Veja também
aloca inicializado armazenamento Original: allocates uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) | |
[estática] |
desaloca de armazenamento usando o alocador Original: deallocates storage using the allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (of std::allocator_traits função public static membro)
|