mirror of https://github.com/xfarrow/lasd.git
parent
97407c2a31
commit
a062709dc4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue