FastLED 3.9.15
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 }
iterator end()
Definition rbtree.h:769
iterator begin()
Definition rbtree.h:755
fl::size mSize
Definition rbtree.h:62
Compare mComp
Definition rbtree.h:63