2017-07-05 21:17:03 +03:00
|
|
|
/*
|
2019-06-20 02:58:25 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2017-07-05 21:17:03 +03:00
|
|
|
*
|
2019-06-20 02:58:25 +03:00
|
|
|
* This software may be used and distributed according to the terms of the
|
|
|
|
* GNU General Public License version 2.
|
2017-07-05 21:17:03 +03:00
|
|
|
*/
|
2019-10-11 15:26:59 +03:00
|
|
|
|
2017-07-05 21:17:03 +03:00
|
|
|
#include "Tree.h"
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace eden {
|
|
|
|
bool operator==(const Tree& tree1, const Tree& tree2) {
|
|
|
|
return (tree1.getHash() == tree2.getHash()) &&
|
|
|
|
(tree1.getTreeEntries() == tree2.getTreeEntries());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool operator!=(const Tree& tree1, const Tree& tree2) {
|
|
|
|
return !(tree1 == tree2);
|
|
|
|
}
|
2017-11-04 01:58:04 +03:00
|
|
|
} // namespace eden
|
|
|
|
} // namespace facebook
|