std::pmr::polymorphic_allocator<T>::destroy (3) - Linux Manuals

std::pmr::polymorphic_allocator<T>::destroy: std::pmr::polymorphic_allocator<T>::destroy

NAME

std::pmr::polymorphic_allocator<T>::destroy - std::pmr::polymorphic_allocator<T>::destroy

Synopsis


template<class U> (since C++17)
void destroy(U* p);


Destroys the object pointed to by p, as if by calling p->~U().

Parameters


p - pointer to the object being destroyed

See also


destroy destructs an object stored in the allocated storage
         (function template)
[static]