std::scoped_allocator_adaptor::destroy
Материал из 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. |
| Заголовочный файл <scoped_allocator>
|
||
| template< class T > void destroy( T* p ); |
(начиная с C++11) | |
Использует внешний распределитель для вызова деструктора объекта, на который указывает
p, позвонив по телефонуOriginal:
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)
где внешняя является тип, который будет возвращен по телефону this->outer_allocator(), а затем вызовом функции
outer_allocator() член рекурсивно результате этого вызова, пока не достигнет того типа, который не имеет такой функции-члена.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.
[править] Параметры
| p | - | указатель на объект, который будет уничтожен
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. |
[править] Возвращаемое значение
(Нет)
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.
[править] См. также
| [static] |
разрушает объект, хранящийся в выделенной памяти 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. (шаблон функции) |
| разрушает объект выделено хранения 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. (public функция-член std::allocator)
| |