type
<cstdarg>

va_list

Type to hold information about variable arguments
This type is used as a parameter for the macros defined in <cstdarg> to retrieve the additional arguments of a function.

va_start initializes an object of this type in such a way that subsequent calls to va_arg sequentially retrieve the additional arguments passed to the function.

Before a function that has initialized a va_list object with va_start returns, the va_end macro shall be invoked.

The specifics of this type depend on the particular library implementation. Objects of this type shall only be used as argument for the va_start, va_arg, va_end and va_copy macros, or functions that use them, like the variable argument functions in <cstdio> (vprintf, vscanf, vsnprintf, vsprintf and vsscanf).

See also