bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::destroy

Destroy the object at the specified address.

Synopsis

Declared in <bslma_allocatortraits.h>

using Base::destroy;

Description

Destroy the object at p via the underlying std::allocator_traits implementation. The behavior is undefined unless p refers to a valid, constructed object.

Parameters

NameDescription
aallocator used for destruction if it provides destroy
paddress of the object to destroy