MCPcopy Create free account
hub / github.com/NativeScript/android / operator==

Method operator==

test-app/runtime/src/main/cpp/robin_hood.h:1709–1721  ·  view source on GitHub ↗

Checks if both tables contain the same entries. Order is irrelevant.

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

hasFunction · 0.85
sizeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected