0/1 уроков (0%)
– из 1
Implementing Variant Visitation Using Lambdas
YouTube·C++Now
Explore the implementation of lambda-based visitation for std::variant in C++17 through this comprehensive conference talk. Delve into the concept of type-safe sum types and their usefulness in modern C++ programming. Learn how to create more elegant and user-friendly interfaces for variant visitation using lambda functions. Discover techniques for overloading arbitrary function objects and implementing zero-runtime-overhead lambda recursion with the Y combinator. Gain insights into handling recursive variant types and applying lambda-based visitation to them. Suitable for developers familiar with C++11 and C++14 core language features, this talk provides a deep dive into advanced C++ concepts and techniques for working with variants.