Top "Variadic" questions

In computer science, an operator or function is variadic if it can take a varying number of arguments; that is, if its arity is not fixed.

Macro to count number of arguments

I have a variadic function from a third-party C library: int func(int argc, ...); argc indicates the number of passed …

c macros arguments variadic
VS2010 C++ variadic template example

I have a class template and I can't seem to figure out how to perform a Variadic Template style instantiation. …

c++ visual-studio-2010 templates variadic
How to write C function accepting (one) argument of any type

I am implementing simple library for lists in C, and I have a problem with writing find function. I would …

c types variadic any
Is there a way to use C++ preprocessor stringification on variadic macro arguments?

My guess is the answer to this question is no, but it would be awesome if there was a way. …

c++ macros arguments variadic stringification
Objective-C passing around ... nil terminated argument lists

Having some issues with the ... in ObjectiveC. I'm basically wrapping a method and want to accept a nil terminated list …

objective-c variadic
Variadic macros with 0 arguments in C99

I have some debugging code that looks like the following: #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define …

macros c99 variadic
How are the MAX and MIN functions implemented in Fortran without support for variadic functions?

Unless I'm mistaken, there is no way in Fortran to write a function or subroutine with an arbitrary number of …

fortran variadic-functions fortran77 variadic fortran95
Why is `boost::any` better than `void*`?

What inherent advantages do boost::any and boost::any_cast offer over using void* and dynamic_cast?

c++ boost void-pointers variadic
how to parse multiple returns in golang

I have a Go function which returns two integer values. Below is the function func temp() (int, int){ return 1,1 } Is …

python go return-value variadic multiple-return-values