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

YouTube

Back to Basics: Initialization in C++ - Lecture

CppCon via YouTube

Overview

Explore the intricacies of object initialization in C++ through this comprehensive conference talk from CppCon 2023. Delve into the various methods of initializing objects, understanding the nuances between different syntaxes and their implications. Learn how context affects compiler interpretation of initialization constructs and gain insights into choosing the most appropriate form for different scenarios, including template type parameters. Examine how initialization rules have evolved over time and discover the common elements that simplify their understanding. Investigate the Standard Library's approach to initialization and its impact on your own code. Acquire knowledge on designing classes that align with initialization rules, making them more user-friendly. By the end of this talk, develop a clearer grasp of each initialization form, enabling you to write more expressive, robust, and maintainable C++ code.

Syllabus

Back to Basics: Initialization in C++ - Ben Saks - CppCon 2023

Taught by

CppCon

Reviews

Start your review of Back to Basics: Initialization in C++ - Lecture

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.