Fold expressions, introduced in C++17, allow us to easily generate code that combines variadic template arguments together or performs an action on them. After a brief overview of the feature's syntax, this short talk shows some cool and useful utilities that can be implemented using fold expressions. The audience should be familiar with variadic templates - knowledge of C++17 features is not required.
YOU MAY ALSO LIKE:
Introduction to C++ origami
Vittorio Romeo is a C++ enthusiast from a young age, now with a BS in Computer Science from the "Università degli Studi di Messina". While following the evolution of the C++ standard and embracing the newest features, he worked on several open-source projects, including modern general-purpose libraries and free cross-platform indie games. Vittorio is an active member of the C++ community, speaking at many conferences and events. He currently maintains a YouTube channel featuring well-received modern C++11 and C++14 tutorials. When he's not writing code, Vittorio enjoys weightlifting and fitness-related activities, competitive/challenging computer gaming and good sci-fi movies/TV-series.