mirror of
https://github.com/xfarrow/lasd.git
synced 2025-06-05 21:49:14 +02:00
Library 3
bugfix
This commit is contained in:
@ -147,12 +147,15 @@ bool BinaryTreeLnk<Data>::operator!=(const BinaryTreeLnk<Data>& tree) const noex
|
||||
|
||||
template <typename Data>
|
||||
struct BinaryTree<Data>::Node& BinaryTreeLnk<Data>::Root() const{
|
||||
if(size==0) throw std::length_error("Empty tree!");
|
||||
return *root;
|
||||
}
|
||||
|
||||
template <typename Data>
|
||||
void BinaryTreeLnk<Data>::Clear(){
|
||||
DeleteTree(root);
|
||||
root = nullptr;
|
||||
size = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user