std::allocator::destroy
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <memory>
|
||
void destroy( pointer p ); |
(até C++11) | |
template< class U > void destroy( U* p ); |
(desde C++11) | |
Calls the destructor of the object pointed to by p
1)
Chama
((T*)p)->~T()Original:
Calls
((T*)p)->~T()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.
2)
Chama
p->~U()Original:
Calls
p->~U()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 | - | ponteiro para o objeto que vai ser destruído
Original: pointer to the object that is going to be destroyed 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
(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.
