Extends.
I thought I was being cool when I did something like:
bool hasParent() { return this->parentNode ; }
Even with a (bool) cast, the
Realistically i think they would optimize to the same, you can also try doing this:
return this->parentNode != 0;