I'm working on an AVL tree with given code, and I get pointers and I get references but I don't get this:
void remove(const Comparable & x, BinaryNode * & t) {
BinaryNode * & t
This appears to me as a pointer to a reference? But searching StackOverflow yields:
Difference between pointer to a reference and reference to a pointer
Pointer to a reference
This doesn't exist. As stated earlier, a reference is merely an alias to another object. You can't "point" to a reference, because it isn't an object in itself but merely another name for a real object.
I strongly suspect this is a question answered many times but searching for C++ * & is rather difficult.