Building a Minimal std::any: Deriving Type Erasure From First Principles
The post walks through constructing a tiny std::any by starting with classic polymorphism via virtual interfaces and template-based generic code, then shows how type erasure hides concrete types behind a uniform wrapper. It explains the underlying mechanics and why this technique lets unrelated objects be handled uniformly.