►Full C++ Series Playlist: [ Ссылка ]
►Find full courses on: [ Ссылка ]
►Join as Member to Support the channel: [ Ссылка ]
►Lesson Description: In this lesson we are going to look at creating a function template with a variable number of arguments. We are going to create a function template using a parameter pack to have an arbitrary number of arguments. This has an advantage of being type safe and also avoids any run-time checks versus using va_args in the stdarg.h header. I'll show in this lesson an example of how to properly create and use a Sum function with variable arguments, and one thing to watch out for.
►YouTube Channel: [ Ссылка ]
►Please like and subscribe to help the channel!
![](https://i.ytimg.com/vi/irFkMavpL9A/mqdefault.jpg)