命名空间
变体
操作

std::experimental::erased_type

来自 cppreference.cn
< cpp‎ | 实验性
定义于头文件 <experimental/utility>
struct erased_type { };
(库基础 TS)
(在库基础 TS v3 中移除)

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

[编辑] 注意

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