allocator_base::destroy

调用对象析构函数,而无需释放存储对象的内存。

void destroy(pointer _Ptr);

参数

Parameter

说明

_Ptr

指定对象的地址的指针会销毁。

备注

此成员函数为用户定义的分配器实现通过调用 _Ptr->~Type()。

要求

标头: <allocators>

命名空间: stdext

请参见

参考

allocator_base Class