Tag: std::any
2 posts
-
[2026] C++ std::any vs void* Complete Comparison | Type-Safe vs Unsafe Type Erasure
Master C++ type erasure: std::any (type-safe, runtime checks, exceptions) vs void* (unsafe, manual casting, legacy). Complete comparison with use cases,...
-
[2026] C++ Type Erasure Complete Guide | Unified Interfaces Without Inheritance
Master C++ Type Erasure: hide concrete types behind stable interfaces for static polymorphism. Complete guide to std::function, std::any, manual vtable ...