now I make 3 functions same name different number of arguments, but let say I call print function with 5 parameters now it will give me an error (as no definition with 5 parameters) , but now i wanna make a function which accepts any number of parameters (not array or vector only int , string double etc) and print them with space
Can you tell us what the Double address operator does? All I could find is something about l and r values, which is not very informative as to what the && operator actually does.
though I’ve not really used them as such, here (i.e. I don’t use them in conjunction with std::forward), as I don’t think there are any situations where it makes a difference(?) in this case.
Now that I come to think of it, you could probably actually simplify everything above down to just: