What C++ Fold Expressions Can Bring to Your Code
▻https://www.fluentcpp.com/2021/03/19/what-c-fold-expressions-can-bring-to-your-code
In the previous post we saw how fold expressions work. We saw how to define them, how to control their associativity, and how to handle empty variadic packs in a fold expression. But all along we’ve been using an example that didn’t bring much value to code: a function that makes the sum of its parameters: template<typename... […]