Fold Expressions
In this lesson, we'll study fold expressions.
We'll cover the following
Fold Expressions (C++17)
Fold expressions is a nice syntax to evaluate binary operators at compile-time. Fold expressions reduce parameter packs on binary operators.
C++11 provides support for parameter packs:
Get hands-on with 1400+ tech skills courses.