The Many Variants of std - variant
Explore the intricacies of std::variant in C++17 through this comprehensive conference talk from C++Now 2019. Delve into the design deliberations, tradeoffs, and controversies surrounding the discriminated union variant type. Gain insights from Nevin ":-)" Liber, a C++ Committee member and veteran developer, as he provides a first-hand account of the standardization process. Learn about performance and usability considerations, vocabulary sum types, noexcept move construction, and the challenges of designing variant. Examine topics such as never-empty guarantees, comparisons, default construction, element access, and the partially formed state. Discover the evolution of std::variant through various iterations and competing proposals. Understand the potential future directions for this feature in the C++ language.