I´ve came across a function declaration, like:
int vsa_d(...);
with ...
as one and only parameter.
I know that with an ellipsis, we can refer to multiple objects, but to what does the ...
refer to here?
What does that mean and for what is it meant for?
To what
...
gets evaluated by the compiler?Could the ellipsis be used also as a function argument, at the invocation of a function?
I´ve found here https://en.cppreference.com/w/cpp/language/variadic_arguments under "Notes":
In the C programming language, at least one named parameter must appear before the ellipsis parameter, so printz(...); is not valid. In C++, this form is allowed even though the arguments passed to such function are not accessible, and is commonly used as the fallback overload in SFINAE, exploiting the lowest priority of the ellipsis conversion in overload resolution.
So, it shall be used for anything like a "fallback overload" in "SFINAE".
What does that mean?