std::experi...erased_type(3)
std::experi...erased_type(3) π
okay bestie, this is the std::experi...erased_type(3) page from the C++ Standard Libary manual. Itβs short, itβs iconic, and itβs literally all about an empty struct doing placeholder main-character work. β¨
NAME π
std::experimental::erased_type - std::experimental::erased_type
no cap, the NAME section is just the name twice. π
Synopsis πΈ
Defined in header <experimental/utility>
struct erased_type { }; (library fundamentals TS)
(removed in library fundamentals TS v3)
The class erased_type is an empty struct that serves as a placeholder for a type in situations where the actual type is determined at runtime. For example, in classes that use type-erased allocators, the nested typedef allocator_type is an alias for erased_type. slay. π«Ά
Notes π¦
erased_type is removed in LFTS v3 because std::pmr::polymorphic_allocator<> is preferable for type erasure. thatβs the tea. π
source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::experi...erased_type(3) β bye bestie, go forth and type-erase with taste ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms