mirror of
https://github.com/xfarrow/lasd.git
synced 2025-06-05 21:49:14 +02:00
Library 4
bug fix (see prev. commit)
This commit is contained in:
@ -61,9 +61,13 @@ const Data& BinaryTree<Data>::Node::Element() const{
|
||||
/* ----- end of struct Node ----- */
|
||||
|
||||
template <typename Data>
|
||||
bool BinaryTree<Data>::operator==(const BinaryTree& toCompare) const noexcept{
|
||||
if(size!=toCompare.size) return false;
|
||||
return(Root() == toCompare.Root());
|
||||
bool BinaryTree<Data>::operator==(const BinaryTree& tree) const noexcept{
|
||||
if(size == tree.size){
|
||||
if(size == 0) return true;
|
||||
else return (Root() == tree.Root());
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename Data>
|
||||
|
Reference in New Issue
Block a user