Fold, Pack, Repeat: Variadic templates
Details
Hello all!
Welcome to our second meetup of 2026. We are kindly hosted by Sinix Group this evening.
Dimitris Platis will talk about variadic templates this time. See abstract and schedule below.
Abstract
Variadic templates allow us to write code that is not only generic when it comes to the types being used, but also the number of arguments.
This is useful in situations where we do not know how many elements we need to process and what their type is.
Since C++17, we can also use fold expressions to make working with variadic templates more expressive.
As with most around templates, the syntax can be intimidating or confusing at first, but eventually it becomes less horrible and can prove to be very powerful.
Subjects covered:
- Template parameter packs and unpacking
- Fold expressions and their syntax
- comma-operator folds
- `std::index_sequence`
- Tuple utilities with variadic templates and fold expressions
In this talk we will introduce variadic templates and fold expressions in a beginner-friendly manner through several practical scenarios.
Familiarity with C++ templates is expected to comfortably follow the material.
AGENDA
18:00 - Doors open, with fika/snacks/food and mingling
18:30 - Event starts, welcome from Sinix
18:40 - Info about GbgCpp
18:45 - Speech starts
19:50 - Wrap-up and closing
20:00 - Event finishes
Welcome!




