Google AI Professional Certificate - Learn AI Skills That Get You Hired
Learn Backend Development Part-Time, Online
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore how to implement Rust-style trait runtime polymorphism in C++ through this conference talk from CppCon 2025. Learn about a library that provides composable abstractions with zero-overhead while improving upon C++ virtual dispatch for better performance and reduced object code size. Discover how traits solve common problems with object-oriented inheritance by allowing you to avoid modifying existing types, eliminate fragile base classes, and decouple behaviors from inheritance hierarchies. Examine the benefits of traits including opt-in behavior, explicit type-safe dynamic dispatch, and polymorphism with value semantics. Study programming techniques such as automatic building of constexpr virtual tables that support Rust traits and may be applicable to other use cases. Understand why this library-based approach gives users freedoms that language features inherently deny, and see how C++ can incorporate and improve upon good ideas from other programming languages.
Syllabus
Rust Trait Runtime Polymorphism in C++ - Eduardo Madrid - CppCon 2025
Taught by
CppCon