std::scoped_allocator_adaptor::destroy
De 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. |
| Défini dans l'entête <scoped_allocator>
|
||
| template< class T > void destroy( T* p ); |
(depuis C++11) | |
Utilise l'allocateur externe pour appeler le destructeur de l'objet pointé par
p, en appelantOriginal:
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)
où ultrapériphériques est le type qui serait renvoyée en appelant this->outer_allocator(), puis en appelant la fonction membre
outer_allocator() récursivement sur le résultat de cet appel jusqu'à ce qu'il atteigne le type qui n'a pas de fonction de ces membres .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.
[modifier] Paramètres
| p | - | pointeur vers l'objet qui va être détruit
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. |
[modifier] Retourne la valeur
(Aucun)
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.
[modifier] Voir aussi
| [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Détruit un objet stocké dans la mémoire allouée 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. (fonction générique) |
| Détruit un objet de stockage alloué 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. (fonction membre publique de std::allocator)
| |