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. |
| Defined in header <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.
[编辑] 另請參閱
| [靜態的] </ SPAN></div></div>
|
解構分配的存儲空間中存儲的對象 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. (公共成員函數of std::allocator)
| |