That class has a kind of strange way of implementing a failed search. In the constructor you pass a bogus object that will act as the
sentinel value, and find() returns that object if it fails. So in your case you will compare mytree->find(joe) against bob , since you passed bob as the constructor argument.