Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Implementing Variant Visitation Using Lambdas

ACCU Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the implementation of variant visitation using lambdas in C++17 through this comprehensive ACCU 2017 conference talk. Delve into the intricacies of std::variant and its role as a type-safe sum type in the STL. Learn about traditional and lambda-based visitation techniques for both non-recursive and recursive variants. Discover how to create an "overload set" generator and implement a "Y-Combinator" for recursive visitation. Gain insights into callable object arity deduction techniques to enhance user interface elegance. Suitable for developers familiar with C++11 and C++14 core language features, this talk covers topics such as variant types, visitation techniques, overload sets, recursive variants, and grammar constructors.

Syllabus

Introduction
Variants
Unions
Recap
Variant Types
Visitation Techniques
Variant Recap
Traditional Visitation
Lambda Visitation
Overload Set
Improvements
Constructors
Overload Function
Static assert
Implementing match
Summary
Recursive
Grammar
Constructor
recursive variants
recursive visitation

Taught by

ACCU Conference

Reviews

Start your review of Implementing Variant Visitation Using Lambdas

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.