allocator_base::destroy

Calls an objects destructor without deallocating the memory where the object was stored.

void destroy(pointer _Ptr);

Parameters

Parameter

Description

_Ptr

A pointer designating the address of the object to be destroyed.

Remarks

This member function is implemented for the user-defined allocator by calling _Ptr->~Type().

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

allocator_base Class