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