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 ( ) ;
(自 C++26 起)

* this 非空值状态,则使用 std:: allocator_traits < Allocator > :: destroy 销毁所持有的对象,随后释放存储空间。

否则,不执行任何操作。

如果 T 不完整类型 ,则程序非良构。