Dereferencing and referencing at the same time?

I am reading a code and I encountered the following line:
 
Memory *&memory;
. Seems kind of strange to me? what is the difference between that and this one:
 
Memory memory;
??? What is the logic behind it?
Last edited on
That would be a reference to a Memory* (a reference to a Memory pointer).

It's quite different from a Memory declared on the stack.
That line doesn't use reference or dereferencing at all. It's creating a reference to a pointer.
thanks guys
Topic archived. No new replies allowed.