Trainings Details
Generic code is key for the success of C++. Almost all parts of the C++ standard library are implemented as templates and with auto. However, the uncertainty when seeing this code and when writing own code is high.
This online training will guide you through the most important elements of generic programming for ordinary application programmers. Based on the general approach for function templates and class templates we cover the more tricky topics like non-type template parameters, variadic templates and fold expressions, class template argument deduction, type traits, and SFINAE.
This can be used as perfect base for the training about C++20/C++23 concepts, which are covered in a training the day after.
Trainings Agenda
- Function templates
- Class templates
- Non-type template parameters
- Using auto in generic code
- Type traits
- SFINAE
- Variadic templates and fold expressions
- Class template argument deduction
- Small tricky basics like typename