YoVDO

Variations on Variants

Offered By: CppNow via YouTube

Tags

C++Now Courses C++ Courses Distributed Systems Courses High Performance Computing Courses Unions Courses Serialization Courses Low-level Programming Courses std::variant Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of std::variant in C++ through this comprehensive conference talk from CppNow 2021. Delve into the rationale behind std::variant as a type-safe alternative to C's union, examining typical usage patterns and implementation details. Gain insights into memory layout and runtime performance implications. Investigate key differences between std::variant and union, focusing on serialization use cases where unions excel but std::variant falls short. Discover innovative approaches to address these limitations, including Intrusive-Variant and Variant-of-Base techniques. Examine the C++ standard's stance on unions and their potential pitfalls. Learn about counterintuitive applications of std::variant, such as a simple mechanism for de-virtualization. Equip yourself with the knowledge to modernize existing low-level C-style code and deepen your understanding of variant internals in this 1 hour 31 minute presentation by experienced software developer and architect Roi Barkan.

Syllabus

Variations on variants - Roi Barkan - [CppNow 2021]


Taught by

CppNow

Related Courses

Computer Graphics
University of California, San Diego via edX
Intro to Parallel Programming
Nvidia via Udacity
Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera
C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera
Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera