Namespaces
Variants

std::experimental:: erased_type

From cppreference.net
定义于头文件 <experimental/utility>
struct erased_type { } ;
(库基础技术规范)
(于库基础技术规范 v3 中移除)

erased_type 是一个空结构体,在运行时确定实际类型的场景中作为类型占位符使用。例如,在使用 类型擦除分配器 的类中,嵌套类型定义 allocator_type erased_type 的别名。

注释

erased_type 已在 LFTS v3 中移除,因为 std:: pmr :: polymorphic_allocator <> 更适合用于类型擦除。