◐ Shell
clean mode source ↗

std::allocator::destroy – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<memory>

void destroy( pointer p );

(bis C + +11)

template< class U > void destroy( U* p );

(seit C++11)

Calls the destructor of the object pointed to by p

1)

Ruft ((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)

Ruft 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.

Parameter

p -

Zeiger auf das Objekt, das nun zerstört werden soll

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.

Rückgabewert

(None)

Original:

(none)

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

Siehe auch

zerstört sich ein Objekt in dem zugewiesenen Speicher abgelegt

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.


(Funktions-Template) [edit]