123456789101112131415161718192021
template<class T> void binSTree<T>::remove(Node<T>*& node, const T& x) { if (node != NULL) { if (x == node->data) { if (leaf(node)) { delete node; } } if (x < node->data) { remove(node->left, x) } else remove(node->right, x); }
if
else if