Namespaces
Variants

std::experimental:: erased_type

From cppreference.net
헤더 파일에 정의됨 <experimental/utility>
struct erased_type { } ;
(라이브러리 펀더멘털 TS)
(라이브러리 펀더멘털 TS v3에서 제거됨)

erased_type 클래스는 빈 구조체로, 실제 타입이 런타임에 결정되는 상황에서 타입을 위한 자리 표시자 역할을 합니다. 예를 들어, type-erased allocators 를 사용하는 클래스에서, 중첩 typedef allocator_type erased_type 의 별칭입니다.

참고 사항

erased_type 는 LFTS v3에서 제거되었습니다. 왜냐하면 타입 소거에는 std:: pmr :: polymorphic_allocator <> 가 더 적합하기 때문입니다.