Namensräume
Varianten

Variadic functions

Aus cppreference.com

<metanoindex/>

Variadic sind Funktionen (zB std::printf), die eine variable Anzahl von Argumenten zu nehmen .
Original:
Variadic functions are functions (e.g. std::printf) which take a variable number of arguments.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Usage

Um eine variadische Funktion deklarieren, wird eine Ellipse als letzten Parameter, zB verwendet int printf(const char *format, ...);. Übergebenen Parameter einer variadische Funktion kann über die folgenden Makros und Typen werden:
Original:
To declare a variadic function, an ellipsis is used as the last parameter, e.g. int printf(const char *format, ...);. Parameters passed to a variadic function can be accessed using the following macros and types:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
definiert in Header <cstdarg>
ermöglicht den Zugriff auf variadische Funktionsargumente
Original:
enables access to variadic function arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funktionieren Makro)