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.
Overview
Syllabus
C++ Type Erasure Demystified - Fedor G Pikus - C++Now 2024
Taught by
CppNow