Modern C++: When Efficiency Matters is a two-day training course with programming exercises taught by Andreas Fertig. It is offered at the Gaylord Rockies from 9AM to 5PM on Saturday and Sunday, September 12th and 13th (immediately prior to the conference). Lunch is included.
Despite that we live in a time in which computers have more and more resources there are still systems which are constraint in memory, CPU or other hardware.
To get good code even for such projects it helps to know how certain features in C++ work. In this class we talk about the new features since C++11 and how they translate to code.
Aside from controlling the resulting code, we will also look to implement things with less code, this helps to save the human resource when it comes to maintenance and debugging.
In case, we have time at the end, we will have a brief look behind coroutines from C++20.
Students are expected to have a basic knowledge of C++ (at least 98 with a basic understanding of C++11).
- Compile-time vs. run-time
- Type-deduction surprises
- Range-based for-loops
- What is a std::initializer_list
- Narrow the variable scope: if / switch with initialization
- Constructor inheritance and its trap
- In-class member initialization
- Lambdas: Generic as well as templated (a preview into C++20)
- Lambda captures: Know what will be captured
- Structured bindings
- Variadic templates
- Recursive variadic templates vs. fold-expressions
- CTAD (Class template argument deduction)
- How a local non-trivial `static` variable works
- Know the costs of the abstraction: shared-/unique-ptr
Andreas Fertig is an independent trainer and consultant for C++ specializing in embedded systems. Since his computer science studies in Karlsruhe, he has dealt with embedded systems and the associated requirements and peculiarities. He worked for about 10 years for Philips Medizin Systeme GmbH as a C++ software developer and architect with focus on embedded systems.He also develops macOS applications and is the creator of cppinsights.io.