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 711 of file rbtree.h.

711 {
712 if (size_ != other.size_) return false;
713
716
717 while (it1 != end() && it2 != other.end()) {
718 // Two values are equal if neither is less than the other
719 if (comp_(*it1, *it2) || comp_(*it2, *it1)) {
720 return false;
721 }
722 ++it1;
723 ++it2;
724 }
725
726 return it1 == end() && it2 == other.end();
727 }
iterator end()
Definition rbtree.h:539
iterator begin()
Definition rbtree.h:525
Compare comp_
Definition rbtree.h:56
fl::size size_
Definition rbtree.h:55