- C++17 STL Cookbook
- Jacek Galowicz
- 55字
- 2025-04-04 19:00:06
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.