Namespaces
Variants

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

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
constexpr ~indirect ( ) ;
(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.