Template Function ADS::join

Function Documentation

template<class T>
BinaryTree<T> *ADS::join(const T &v, const BinaryTree<T> *l, const BinaryTree<T> *r)

a new root of value v with copies of l and r, each possibly nil, as its children; the caller owns it