Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into an in-depth exploration of type erasure in C++ with this comprehensive conference talk by Fedor G Pikus at C++Now 2024. Demystify the concept of type erasure, often considered the pinnacle of abstraction in C++, through clear explanations and practical demonstrations. Begin by examining code examples that showcase the end result of type erasure, then uncover the fundamental technique underlying all implementations. Learn three basic approaches to implementing type erasure, stripped down to their essentials for maximum clarity. Gain insights into vtable implementation along the way. Compare the performance of different type erasure implementations, including tips on optimizing std::function for speed. Whether you're looking to create your own implementation or leverage existing libraries, walk away with a solid understanding of type erasure, dispelling its mystique and equipping you with practical knowledge for your C++ projects.