Comparison (order-independent)
| 454 | |
| 455 | // Comparison (order-independent) |
| 456 | bool operator==(const unordered_map_small& other) const FL_NOEXCEPT { |
| 457 | if (mSize != other.mSize) return false; |
| 458 | for (size_type i = 0; i < mData.size(); ++i) { |
| 459 | if (!mOccupied.test(i)) continue; |
| 460 | size_type oidx = other.find_index(mData[i].first); |
| 461 | if (oidx == npos() || !(other.mData[oidx].second == mData[i].second)) { |
| 462 | return false; |
| 463 | } |
| 464 | } |
| 465 | return true; |
| 466 | } |
| 467 | |
| 468 | bool operator!=(const unordered_map_small& other) const FL_NOEXCEPT { |
| 469 | return !(*this == other); |
nothing calls this directly
no test coverage detected