Generics in C++ 5 - Variadic arguments and Variadic Function Templates | Modern Cpp Series Ep. 75

Описание к видео Generics in C++ 5 - Variadic arguments and Variadic Function Templates | Modern Cpp Series Ep. 75

►Full C++ Series Playlist:    • The C++ Programming Language  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►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:    / mikeshah  
►Please like and subscribe to help the channel!

Комментарии

Информация по комментариям в разработке