今日已更新 281 条资讯 | 累计 21147 条内容
关于我们

Deriving Type Erasure

/u/david-alvarez-rosa 2026年06月03日 00:15 3 次阅读 来源:Reddit r/programming

Ever looked at std::any and wondered what’s going on behind the scenes? Beneath the intimidating interface is a classic technique called type erasure: concrete types hidden behind a small, uniform wrapper. Starting from familiar tools like virtual functions and templates, we’ll build a minimal std::any . By the end, you’ll have a clear understanding of how type erasure works under the hood. submitted by /u/david-alvarez-rosa [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文