Variadic functions – Part 3: techniques of variadic templates
In the previous article I have shown you how variadic templates can be a type-safe alternative to va_arg macros in designing the variadic functions. Today I want to show you…
In the previous article I have shown you how variadic templates can be a type-safe alternative to va_arg macros in designing the variadic functions. Today I want to show you…
In the previous article, we have seen an old C-style way of defining the variadic functions - via va_args macros. We have also learned their weaknesses: runtime cost, strict contract…
From time to time there is a need to write a function, that accepts an unspecified number of arguments. In C++ we have multiple ways of handling this depending on…