std::destroy_at
STD:摧毁[医]在
Defined in header | | |
---|---|---|
template< class T > void destroy_at( T* p | | (since C++17) |
调用指向的对象的析构函数。p,好像p->~T()...
参数
p | - | a pointer to the object to be destroyed |
---|
返回值
%280%29
可能的实施
模板<class T>空洞破坏[医]%28吨%2A{p->~T%28%29;}
*。
例
另见
destroy (C++17) | destroys a range of objects (function template) |
---|---|
destroy_n (C++17) | destroys a number of objects in a range (function template) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。