std::polymorphic<T, Allocator>:: ~polymorphic
From cppreference.net
<
cpp
|
memory
|
polymorphic
C++
Memory management library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
constexpr
~polymorphic
(
)
;
|
(seit C++26) | |
Wenn * this nicht wertlos ist, zerstört es das enthaltene Objekt mittels std:: allocator_traits < Allocator > :: destroy und der Speicher wird anschließend freigegeben.
Andernfalls tut es nichts.
Wenn
T
ein
unvollständiger Typ
ist, ist das Programm fehlerhaft.