|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
polymorphic_allocator::destroy (C++20/26*) | ||||
| Non-member functions | ||||
(until C++20) |
template<class U> void destroy( U* p); | (since C++17) (deprecated in C++20) (undeprecated in C++26) | |
Destroys the object pointed to byp, as if by callingp->~U().
| p | - | pointer to the object being destroyed |
This function is deprecated viaLWG issue 3036, because its functionality can be provided by the default implementation ofstd::allocator_traits::destroy and hence extraneous.
This function is undeprecated viaP2875R4.
[static] | destructs an object stored in the allocated storage (function template)[edit] |