Namespaces
Variants

std::experimental:: erased_type

From cppreference.net
ヘッダーで定義 <experimental/utility>
struct erased_type { } ;
(ライブラリ基盤 TS)
(ライブラリ基盤 TS v3 で削除)

erased_type クラスは、実際の型が実行時に決定される状況で型のプレースホルダーとして機能する空の構造体です。例えば、 type-erased allocator を使用するクラスでは、ネストされたtypedef allocator_type erased_type のエイリアスとして定義されます。

注記

erased_type はLFTS v3で削除されました。なぜなら std:: pmr :: polymorphic_allocator <> が型消去により適しているためです。