allocator_traits::destroy 메서드
Static method that uses a specified allocator to call the destructor on an object without deallocating its memory.
template<class Uty>
static void destroy(Alloc& al, Uty *ptr);
매개 변수
al
An allocator object.ptr
A pointer to the location of the object.
설명
This method calls al.destroy(ptr), if that expression is well formed; otherwise it evaluates ptr->~Uty().
요구 사항
헤더 <memory>
네임스페이스: std