Explore the intricacies of Template Meta Programming (TMP) through the lens of implementing a variant in this 41-minute conference talk from Meeting C++ 2022. Dive into the often-overlooked challenges of variant implementation, including multiple-dispatch, return type deduction, SFINAE, noexcept, and constexpr support. Suitable for both TMP novices and experienced programmers, gain valuable insights into modern C++ implementation techniques and compare them to earlier, more complex approaches. Learn about key concepts such as what a variant is, integer lists, type by index, instance of, forward union, and switch implementation. Discover how to make your code more concept-friendly and handle edge cases effectively.
Overview
Syllabus
Introduction
What is Variant
Library
Integer List
Type by Index
Instance off
Forward
Union
Switch
Implementation
Concept Friendly
One Case
Taught by
Meeting Cpp