Learn++ Lesson 49: Fold Expressions in C++ Programming

Fold expressions were introduced in C++17 to apply a binary operator across the values in a parameter pack. They make variadic-template code shorter and easier to read.

The lesson practices reading a left fold using + and predicting its output.

Social posts

Back to Learn++ news