T
Tomás
Let's say we have a variable length argument list function like so:
unsigned GetAverage(unsigned a, unsigned b, ...);
I wonder does the compiler go through the code looking for invocations of
the function, and from there, treat it sort of like a template function?
For instance, if we had a template function like so:
template<class T>
T GetAverage(T a, T b);
Then the compiler would go through the code, and where ever this template
function is invoked, it "makes a new function" with the types specified
by the code.
Yes I know compilers may do things however they please (for the most
part), but I wonder if v-l-a-l functions are treated like template
functions?
-Tomás
unsigned GetAverage(unsigned a, unsigned b, ...);
I wonder does the compiler go through the code looking for invocations of
the function, and from there, treat it sort of like a template function?
For instance, if we had a template function like so:
template<class T>
T GetAverage(T a, T b);
Then the compiler would go through the code, and where ever this template
function is invoked, it "makes a new function" with the types specified
by the code.
Yes I know compilers may do things however they please (for the most
part), but I wonder if v-l-a-l functions are treated like template
functions?
-Tomás