FastLED
3.9.15
Loading...
Searching...
No Matches
◆
max_element()
[2/2]
template<typename Iterator, typename Compare>
Iterator fl::max_element
(
Iterator
first
,
Iterator
last
,
Compare
comp
)
Definition at line
36
of file
algorithm.h
.
36
{
37
if
(first == last) {
38
return
last;
39
}
40
41
Iterator max_iter = first;
42
++first;
43
44
while
(first != last) {
45
if
(comp(*max_iter, *first)) {
46
max_iter = first;
47
}
48
++first;
49
}
50
51
return
max_iter;
52
}
fl
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2