std::allocator<T>::destroy_C++中文网
位置:首页 > C++ 参考手册 >动态内存管理 >std::allocator > std::allocator<T>::destroy
定义于头文件 <memory>
<memory>
void destroy( pointer p );
template< class U > void destroy( U* p );
调用 p 所指的对象的析构函数
p
1) 调用 ((T*)p)->~T()
2) 调用 p->~U()
(无)
destroy
[静态]