I am learning the new c++17 fold expression and I saw this code from c++17 fold expression. I would like to know why this code work :
template
As seen on cppreference, binary folds can have the following two forms:
Where E is the pack expression and I is the initialization expression.
E
I
There is no binary fold that matches your (std::cout << args << ...), which has the form of (I op E op ...).
(std::cout << args << ...)
(I op E op ...)