Namespaces
Variants

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

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 ~polymorphic ( ) ;
(C++26부터)

만약 * this 가 값을 보유하고 있는 경우, 소유한 객체를 std:: allocator_traits < Allocator > :: destroy 를 사용하여 파괴한 후 저장 공간을 해제합니다.

그 외의 경우, 아무 작업도 수행하지 않습니다.

만약 T 불완전한 타입 인 경우, 프로그램은 형식에 맞지 않습니다.