I've recently come across *& as a parameter in a function.
From what I've understood, it is similar to **.
Why is it needed in a function that is altering the pointer?
E.g. with the new keyword
Let's say I have a pointer int* a, why would I have to pass the parameter as a "pointer reference" if I wanted to do a = new int; inside that function?
int *&is toint*asint&is toint. There is nothing special about pointers, they just have a funny spelling. - molbdnilo