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

◆ operator==()

template<typename Key, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>>
bool fl::unordered_set< Key, Hash, KeyEqual >::operator== ( const unordered_set< Key, Hash, KeyEqual > & other) const
inline

Equality comparison (set equality: same elements, order-independent)

Definition at line 154 of file unordered_set.h.

154 {
155 if (size() != other.size()) return false;
156 for (const auto& key : *this) {
157 if (!other.has(key)) return false;
158 }
159 return true;
160 }
bool has(const Key &key) const
fl::size size() const

References unordered_set(), has(), and size().

+ Here is the call graph for this function: