Library 4

Added more functions
This commit is contained in:
Alessandro Ferro
2021-05-12 08:43:39 +02:00
parent 599433ced3
commit 5aaddb0051
3 changed files with 192 additions and 32 deletions

View File

@ -143,7 +143,8 @@ BinaryTreeLnk<Data>& BinaryTreeLnk<Data>::operator=(BinaryTreeLnk<Data>&& tree)
template <typename Data>
bool BinaryTreeLnk<Data>::operator==(const BinaryTreeLnk<Data>& tree) const noexcept{
if(size == tree.size){
return (Root() == tree.Root());
if(size == 0) return true;
else return (Root() == tree.Root());
}else{
return false;
}