Tag: Variadic
C++11 – Variadic Template Function | Tutorial & Examples
Variadic Template is introduced in C++11. Variadic Template allows a function to take variable number of arguments of any type. Let’s understand by an example. Advertisements Suppose we want to create a function log() that accepts variable number of arguments of any type and prints them on console i.e. log(1,4.3, “Hello”); log(‘a’, “test”, 78L, 5); class Student; Student …
C++11 – Variadic Template Function | Tutorial & ExamplesRead More