SysTutorials

Linux Manual Pages › Section 3

stdexperimentalpmrpolymorphic_allocatordestroy(3)

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

Synopsis

template <class U>
(library fundamentals TS)
    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]