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
976
const_iterator
it1
=
begin
();
977
const_iterator
it2
=
other
.
begin
();
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::RedBlackTree::const_iterator
Definition
rbtree.h:419
fl::RedBlackTree::end
iterator end()
Definition
rbtree.h:769
fl::RedBlackTree::begin
iterator begin()
Definition
rbtree.h:755
fl::RedBlackTree::mSize
fl::size mSize
Definition
rbtree.h:62
fl::RedBlackTree::mComp
Compare mComp
Definition
rbtree.h:63
fl::RedBlackTree
Definition
rbtree.h:24
fl
RedBlackTree
Generated on Tue Jun 16 2026 00:07:06 for FastLED by
1.13.2