FastLED 3.10.8
Loading...
Searching...
No Matches

◆ operator==()

template<typename T, typename Compare = less<T>, typename Allocator = allocator_slab<char>>
bool fl::RedBlackTree< T, Compare, Allocator >::operator== ( const RedBlackTree< T, Compare, Allocator > & other) const
inline

Definition at line 973 of file rbtree.h.

973 {
974 if (mSize != other.mSize) return false;
975
978
979 while (it1 != end() && it2 != other.end()) {
980 // Two values are equal if neither is less than the other
981 if (mComp(*it1, *it2) || mComp(*it2, *it1)) {
982 return false;
983 }
984 ++it1;
985 ++it2;
986 }
987
988 return it1 == end() && it2 == other.end();
989 }
fl::size mSize
Definition rbtree.h:62
iterator begin() FL_NO_EXCEPT
Definition rbtree.h:755
Compare mComp
Definition rbtree.h:63
iterator end() FL_NO_EXCEPT
Definition rbtree.h:769