MCPcopy Create free account
hub / github.com/FastLED/FastLED / operator==

Method operator==

src/fl/stl/unordered_map_small.h:456–466  ·  view source on GitHub ↗

Comparison (order-independent)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

find_indexMethod · 0.80
sizeMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected