Template Function ADS::copy(const Tree<T> *)

Function Documentation

template<class T>
Tree<T> *ADS::copy(const Tree<T> *t)

a deep copy of the subtree t and of its children, not of its siblings; the caller owns it

Pre:

t is a node

Post:

the copy is a root