FastLED 3.10.8
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 1028 of file unordered_map.h.

1028 {
1029 if (size() != other.size()) return false;
1030 for (const auto& kv : *this) {
1031 auto it = other.find(kv.first);
1032 if (it == other.end() || it->second != kv.second) return false;
1033 }
1034 return true;
1035 }
iterator find(const Key &key) FL_NO_EXCEPT
fl::size size() const FL_NO_EXCEPT
iterator end() FL_NO_EXCEPT