std::scoped_allocator_adaptor::destroy
De cppreference.com
< cpp | memory | scoped allocator adaptor
![]() |
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 en la cabecera <scoped_allocator>
|
||
template< class T > void destroy( T* p ); |
(desde C++11) | |
Usa el asignador externo para llamar al destructor del objeto apuntado por
p
, llamandoOriginal:
Uses the outer allocator to call the destructor of the object pointed to by
p
, by callingThe 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.
std::allocator_traits<OUTERMOST>::destroy(OUTERMOST(*this), p)
donde más externa es el tipo que sería devuelta al llamar this->outer_allocator(), a continuación, llamar a la función miembro
outer_allocator()
recursivamente en el resultado de la presente convocatoria hasta alcanzar el tipo que no tiene ninguna función miembro tal .Original:
where OUTERMOST is the type that would be returned by calling this->outer_allocator(), and then calling the
outer_allocator()
member function recursively on the result of this call until reaching the type that has no such member function.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 | - | puntero al objeto que va a ser destruido
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. |
[editar] Valor de retorno
(Ninguno)
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] Ver también
[estático] |
destructs un objeto almacenado en el almacenamiento asignado 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. (plantilla de función) |
destructs un objeto de almacenamiento asignado Original: destructs an object in allocated storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro público de std::allocator )
|