| 481 | } |
| 482 | |
| 483 | bool operator<(const MultiMapTree& other) const { |
| 484 | for (auto it1 = begin(), it2 = other.begin(); it1 != end() && it2 != other.end(); ++it1, ++it2) { |
| 485 | if (it1->first < it2->first) return true; |
| 486 | if (it2->first < it1->first) return false; |
| 487 | if (it1->second < it2->second) return true; |
| 488 | if (it2->second < it1->second) return false; |
| 489 | } |
| 490 | return size() < other.size(); |
| 491 | } |
| 492 | |
| 493 | bool operator<=(const MultiMapTree& other) const { |
| 494 | return *this < other || *this == other; |