std::va_list(3)
β¨ NAME β¨
std::va_list - std::va_list β bestie, welcome to std::va_list(3), a page straight from the C++ Standard Libary, and it is literally about std::va_list π
π Synopsis π
Defined in header <cstdarg>
typedef /* unspecified */ va_list;
va_list is a complete object type (in practice, a unique built-in type or char*) 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. That part is important, okay? π«Ά
It is legal to pass a pointer to a va_list object to another function and then use that object after the function returns. No cap, that's the rule πΈ
π See also π
va_startβ enables access to variadic function arguments (function macro) βva_copyβ makes a copy of the variadic function arguments (C++11) (function macro) πva_argβ accesses the next variadic function argument (function macro) π₯va_endβ ends traversal of the variadic function arguments (function macro) π- C documentation for
va_listπ
That's the whole vibe, bestie: source/version cppreference.com, date 2024.06.10, page std::va_list(3). Bye and slay your variadic functions responsibly ππ¦π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms