
上QQ阅读APP看书,第一时间看更新
Implementing handy helper functions with fold expressions
Since C++11, there are variadic template parameter packs, which enable implementing functions that accept arbitrarily many parameters. Sometimes, these parameters are all combined into one expression in order to derive the function result from that. This task became really easy with C++17, as it comes with fold expressions.