Destroy an object of type _Tp
Declared in <bslma_allocatortraits.h>
template<typename _Tp>
constexpr
static
void
destroy(
_Alloc& __a,
_Tp* __p) noexcept(_S_nothrow_destroy<_Tp>());
Calls __a.destroy(__p) if that expression is well-formed, otherwise calls __p->~_Tp()
| Name | Description |
|---|---|
| __a | An allocator. |
| __p | Pointer to the object to destroy |