std::destroy_at (3) Linux Manual Page
std::destroy_at – std::destroy_at Synopsis Defined in header<memory> template <class T> (since C++ 17) void destroy_at(T *p); Calls the destructor of the object pointed to by p, as if by p->~T(). Parameters p – a pointer to the object to be destroyed Return value (none) Possible implementation template<class T> void destroy_at(T* p) { p->~T(); } Example…
