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
714
const_iterator
it1
=
begin
();
715
const_iterator
it2
=
other
.
begin
();
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
}
fl::RedBlackTree::const_iterator
Definition
rbtree.h:411
fl::RedBlackTree::end
iterator end()
Definition
rbtree.h:539
fl::RedBlackTree::begin
iterator begin()
Definition
rbtree.h:525
fl::RedBlackTree::comp_
Compare comp_
Definition
rbtree.h:56
fl::RedBlackTree::size_
fl::size size_
Definition
rbtree.h:55
fl::RedBlackTree
Definition
rbtree.h:19
fl
RedBlackTree
Generated on Fri Aug 22 2025 20:59:37 for FastLED by
1.13.2