In your expression BinaryNode * & t)
BinaryNode* & t
------------- -----
BinaryNode pointer t is reference variable
so t
is reference to pointer of BinaryNode class.
Pointer of the address of t?
You are confused ampersand &
operator in c++. that give address of an variable. but syntax is different.
ampersand &
in front of some of variable like below:
BinaryNode b;
BinaryNode* ptr = &b;
But following way is for reference variable (its simple not pointer):
BinaryNode b;
BinaryNode & t = b;
and your is like below:
BinaryNode b;
BinaryNode* ptr = &b;
BinaryNode* &t = ptr;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…