Comparison operators
| 467 | |
| 468 | // Comparison operators |
| 469 | bool operator==(const MultiMapTree& other) const { |
| 470 | if (size() != other.size()) return false; |
| 471 | for (auto it1 = begin(), it2 = other.begin(); it1 != end(); ++it1, ++it2) { |
| 472 | if (it1->first != it2->first || it1->second != it2->second) { |
| 473 | return false; |
| 474 | } |
| 475 | } |
| 476 | return true; |
| 477 | } |
| 478 | |
| 479 | bool operator!=(const MultiMapTree& other) const { |
| 480 | return !(*this == other); |