Is it possible to overload a function that takes the name of a link or variable?
For example, when I try to do this:
void function(double a); void function(double &a);
I would like the calling function of this function to be able to:
double a = 2.5; function(a);
I would like to write link-passing functions for better memory usage and possible manipulation of a variable out of scope, but without the need to create a new variable so that I can call the function.
Is it possible?
Greetings
c ++ pass-by-reference pass-by-value overloading
Simon walker
source share