Classes C++23 Style - Sebastian Theophil - C++Online 2025
Автор: C++Online
Загружено: 2025-07-27
Просмотров: 510
https://cpponline.uk/
---
Classes C++23 Style - Sebastian Theophil - C++Online 2025
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 also when to use them.
Slides: https://github.com/CppOnlineConferenc...
---
***
---
Sebastian Theophil
Sebastian has been working at think-cell since it was founded in 2002. In the last few years, among many other things, he has ported think-cell to run on macOS. He also maintains the typescripten project, which lets programmers call JavaScript libraries from C++ code compiled to WebAssembly in a convenient and type-safe way. He enjoys leaving his desk from time to time to talk at international C++ conferences.
---
C++Online is the annual, online only conference for the entire C++ community. The conference is designed to provide a more accessible option for C++ developers who might find attending other international C++ conferences more difficult or financially restrictive, at a time of year where we traditionally see less in-person cpp conferences due to weather, holidays and other restrictions.
The Online C++ Conference - https://cpponline.uk
/ cpponline
https://x.com/cpponline
https://www.facebook.com/profile.php?...
/ cpponline
https://mastodon.social/@cpponline
https://bsky.app/profile/cpponline.bs...
---
Streamed & Edited by Digital Medium Ltd - online.digital-medium.co.uk
---
C++Online - The Online C++ Conference organized by Shaved Yaks: https://shavedyaks.com/ & Digital Medium: https://events.digital-medium.co.uk
---
#cpp #cplusplus #cpponline #cplusplusprogramming #cppprogramming #softwareengineer #softwaredevelopment #softwareengineering #programming #programmingconcepts #coding #softwaredeveloper #computerprogramming #computerprogrammer
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: