Overview
Explore the controversial journey and design decisions behind C++17's discriminated union variant type in this conference talk from Meeting C++ 2024. Gain firsthand insights into the performance and usability tradeoffs that shaped the implementation of std::variant, including detailed explanations of the consensus-building process and committee deliberations. Learn about potential future developments, such as the integration of pattern matching to enhance usability and proposals to elevate variant to a first-class language feature. Delve into the technical considerations and competing design philosophies that influenced this important addition to the C++ standard library.
Syllabus
The Many Variants of std::variant - Nevin Liber - Meeting C++ 2024
Taught by
Meeting Cpp