FastLED
3.10.8
Loading...
Searching...
No Matches
◆
lexicographical_compare()
[2/2]
template<typename Iterator1, typename Iterator2, typename Compare>
bool fl::adl_barrier::lexicographical_compare
(
Iterator1
first1
,
Iterator1
last1
,
Iterator2
first2
,
Iterator2
last2
,
Compare
comp
)
Definition at line
168
of file
algorithm.h
.
168
{
169
while
(first1 != last1 && first2 != last2) {
170
if
(comp(*first1, *first2)) {
171
return
true
;
172
}
173
if
(comp(*first2, *first1)) {
174
return
false
;
175
}
176
++first1;
177
++first2;
178
}
179
// If we've exhausted first1 but not first2, first1 is less
180
// If we've exhausted both, they're equal (return false)
181
// If we've exhausted first2 but not first1, first2 is less (return false)
182
return
(first1 == last1) && (first2 != last2);
183
}
References
fl::FL_NO_EXCEPT
.
fl
adl_barrier
Generated on Sun Oct 18 2026 00:57:09 for FastLED by
1.13.2