std::va_list (3) - Linux Man Pages

std::va_list: std::va_list

NAME

std::va_list - std::va_list

Synopsis


Defined in header <cstdarg>
typedef /* unspecified */ va_list;


va_list is a complete object type suitable for holding the information needed by the macros va_start, va_copy, va_arg, and va_end.
If a va_list instance is created, passed to another function, and used via va_arg in that function, then any subsequent use in the calling function should be preceded by a call to va_end.
It is legal to pass a pointer to a va_list object to another function and then use that object after the function returns.

See also


         enables access to variadic function arguments
va_start (function macro)


va_copy makes a copy of the variadic function arguments
         (function macro)
(C++11)
         accesses the next variadic function argument
va_arg (function macro)
         ends traversal of the variadic function arguments
va_end (function macro)