X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/6eca7410b5a4c3c5225d852dd1d1ce9b74a7f4cd..3981ffa23945f8764b5bc4c790ff0f0947858010:/src/btree_data.cpp diff --git a/src/btree_data.cpp b/src/btree_data.cpp index 1203d6c..7ba3448 100644 --- a/src/btree_data.cpp +++ b/src/btree_data.cpp @@ -48,6 +48,12 @@ bool BTreeData::operator < (const BTreeData &data) const return (*clave) < (*(data.clave)); } +bool BTreeData::operator == (const BTreeData &data) const +{ + if (!data.clave) return false; + + return (*clave) == (*(data.clave)); +} BTreeLeafData::~BTreeLeafData () {