C++17 fold expression in cout

前端 未结 1 837
名媛妹妹
名媛妹妹 2021-01-12 18:42

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

        
相关标签:
1条回答
  • 2021-01-12 18:59

    As seen on cppreference, binary folds can have the following two forms:

    Where E is the pack expression and I is the initialization expression.


    There is no binary fold that matches your (std::cout << args << ...), which has the form of (I op E op ...).

    0 讨论(0)
提交回复
热议问题