Generic Programming (Templates) with C++
- Code:
- 20
- Location:
- Online seminar / face-to-face seminar
Description
Duration
- 5 * 1/2 day or 3 * 1 day
Accompanying literature
- Each participant gets one of my digital or printed books.
Method
- Theory and praxis with many exercises. You get the source code and the solutions to the exercises.
- You need a computer with at least a C++11 compiler.
Objectives
- Learn the basics and advanced usage of templates.
- Know and implement new program techniques in C++.
- Get a better understanding of modern C++.
Standard
- C++11/14/17/20 standard
Content
- Basics
- Function templates
- Class templates
- Template parameters
- Template arguments
- Specialization
- Details
- Template Instantiation
- Variadic Templates
- Fold Expressions
- Friends
- Dependant Names
- Techniques
- Automatic return type
- Template metaprogramming
- Type traits
- constexpr
- constexpr if
- Design
- Static versus dynamic polymorphism
- CRTP
- Expression templates
- Idioms and patterns
- Future (C++20)
- Concepts
Conditions of participation:
The general terms and conditions are found in the GT&C.