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