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

YouTube

Using Modern C++ to Eliminate Virtual Functions - CppCon 2022

CppCon via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore techniques for replacing runtime polymorphism with compile-time polymorphism in C++20, eliminating the need for virtual functions in statically linked programs. Delve into the mechanisms of modern C++ that achieve the same purposes as virtual functions, and gain insights into when and why to avoid or remove them from a codebase. Learn about binding interfaces, polymorphic types, virtual and non-virtual implementations, storing multiple types, properties, vectors, and implementations. Examine the downsides and bold claims surrounding devirtualization, and engage in a practice task to reinforce your understanding. Presented by Jonathan Gopel, a C++ enthusiast and outdoor sports enthusiast, at CppCon 2022, this hour-long conference talk offers a comprehensive exploration of advanced C++ concepts for experienced programmers looking to optimize their code.

Syllabus

Introduction
Binding interfaces
Usage
Polymorphic Types
Virtual Implementation
NonVirtual Implementation
Storing Multiple Types
Properties
Vectors
Implementations
Review
Downsides
Bold Claim
Devirtualization
Comments
Practice Task

Taught by

CppCon

Reviews

Start your review of Using Modern C++ to Eliminate Virtual Functions - CppCon 2022

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.