Classes C++23 Style - Sebastian Theophil - Meeting C++ 2024
ฝัง
- เผยแพร่เมื่อ 5 ก.พ. 2025
- Classes C++23 Style - Sebastian Theophil - Meeting C++ 2024
Slides: slides.meeting...
Survey: survey.meeting...
Classes are maybe the most important language-feature of C++. It was originally called "C with classes" after all! Classes in C++ have constructors, destructors, base classes, template arguments, attributes etc. But that is just syntax. When we write and read code, a class should have meaning! It represents a value, a container, a resource or a state machine. Starting from these different use cases, I will show the best C++23 practices to define common types of classes. How do we define and constrain the life-cycle of an object? What special member functions should a class define or not define? What are regular types? What are standard layout types? I will cover the spaceship operator, conditionally explicit conversions, C++26 contracts, reference-qualified member functions and deducing this. By starting from common use-cases, I hope to show not only how to use these C++ features but when to use them.
i love how you guys post so regularly and the audio and visual are always top notch
Thanks! I think the decision to go hybrid with all tracks two years ago was a good one, it ensures good recordings of all talks through the tech company onsite. Regular posting will continue until February/Early March, than all talks will be online.
An intriguing talk, and I consider myself a bit too much of a fan of C. I could perhaps give these tools a spin.
4:39 A talk by Howard Hinnant about move semantics: th-cam.com/video/vLinb2fgkHk/w-d-xo.html