FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator==()

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
bool fl::unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT >::operator== ( const unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT > & other) const
inline

Equality comparison (map equality: same key-value pairs, order-independent)

Definition at line 1100 of file unordered_map.h.

1100 {
1101 if (size() != other.size()) return false;
1102 for (const auto& kv : *this) {
1103 auto it = other.find(kv.first);
1104 if (it == other.end() || it->second != kv.second) return false;
1105 }
1106 return true;
1107 }
iterator find(const Key &key)
fl::size size() const