Checks if both tables contain the same entries. Order is irrelevant.
| 1707 | |
| 1708 | // Checks if both tables contain the same entries. Order is irrelevant. |
| 1709 | bool operator==(const Table& other) const { |
| 1710 | ROBIN_HOOD_TRACE(this) |
| 1711 | if (other.size() != size()) { |
| 1712 | return false; |
| 1713 | } |
| 1714 | for (auto const& otherEntry : other) { |
| 1715 | if (!has(otherEntry)) { |
| 1716 | return false; |
| 1717 | } |
| 1718 | } |
| 1719 | |
| 1720 | return true; |
| 1721 | } |
| 1722 | |
| 1723 | bool operator!=(const Table& other) const { |
| 1724 | ROBIN_HOOD_TRACE(this) |