Overview
Explore modern C++ class design in this conference talk from Meeting C++ 2024, where Sebastian Theophil delves into best practices for implementing different types of classes using C++23 features. Learn how to effectively represent values, containers, resources, and state machines through proper class design, while mastering key concepts like object lifecycle management, special member functions, regular types, and standard layout types. Gain practical insights into implementing the spaceship operator, handling conditionally explicit conversions, working with upcoming C++26 contracts, utilizing reference-qualified member functions, and leveraging the 'deducing this' feature. Discover not just the syntax and mechanics of these advanced C++ features, but understand the contextual reasoning behind when and how to apply them in real-world scenarios.
Syllabus
Classes C++23 Style - Sebastian Theophil - Meeting C++ 2024
Taught by
Meeting Cpp