◐ Shell
clean mode source ↗

std::allocator::destroy - cppreference.com

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.

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.

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.

Veja também

destrói um objeto armazenado no armazenamento alocado

Original:

destructs an object stored in the allocated storage

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(modelo de função) [edit]