[ Web Proxy ]
URL:
Viewing: https://cppreference.com/cpp/memory/polymorphic/~polymorphic [Back]  [Original]

std::polymorphic<T, Allocator>::~polymorphic - cppreference.com
cppreference.com
Namespaces
Variants

std::polymorphic<T, Allocator>::~polymorphic

From cppreference.com
 
 
Memory management library
Allocators
Memory resources
Uninitialized storage (until C++20*)
Garbage collector support (until C++23)
 
 
constexpr ~polymorphic();
(since C++26)

If *this is not valueless, destroys the owned object using std::allocator_traits<Allocator>::destroy and then the storage is deallocated.

Otherwise, does nothing.

If T is an incomplete type, the program is ill-formed.


Web Proxy Viewer  |  New URL  |  Original Page