std::experimental::erased_type
来自 cppreference.cn
定义于头文件 <experimental/utility> |
||
struct erased_type { }; |
(库基础 TS) (在库基础 TS v3 中移除) |
|
erased_type
类是一个空结构体,在实际类型在运行时确定的情况下,它作为类型的占位符。例如,在使用类型擦除分配器的类中,嵌套的 typedef allocator_type
是 erased_type
的别名。
[编辑] 注意
erased_type
在 LFTS v3 中被移除,因为 std::pmr::polymorphic_allocator<> 更适合类型擦除。