| Defined in header
<memory> | ||
|---|---|---|
template< class T > void destroy_at( T* p ); | (since C++17) |
Calls the destructor of the object pointed to by p, as if by p->~T().
| p | - | a pointer to the object to be destroyed |
(none).
template<class T>
void destroy_at(T* p)
{
p->~T();
} |
| (C++17)
| destroys a range of objects (function template) |
| (C++17)
| destroys a number of objects in a range (function template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/memory/destroy_at