Library 3

This commit is contained in:
Alessandro Ferro
2021-06-09 11:55:47 +02:00
parent 2161904478
commit 4d17a3c835
7 changed files with 12 additions and 11 deletions

View File

@ -134,7 +134,6 @@ BinaryTreeLnk<Data>& BinaryTreeLnk<Data>::operator=(const BinaryTreeLnk<Data>& t
template <typename Data>
BinaryTreeLnk<Data>& BinaryTreeLnk<Data>::operator=(BinaryTreeLnk<Data>&& tree) noexcept{
Clear();
std::swap(size, tree.size);
std::swap(root, tree.root);
return *this;