FastLED 3.9.15
Loading...
Searching...
No Matches

◆ max_element() [1/2]

template<typename Iterator>
Iterator fl::max_element ( Iterator first,
Iterator last )

Definition at line 18 of file algorithm.h.

18 {
19 if (first == last) {
20 return last;
21 }
22
23 Iterator max_iter = first;
24 ++first;
25
26 while (first != last) {
27 if (*max_iter < *first) {
28 max_iter = first;
29 }
30 ++first;
31 }
32
33 return max_iter;
34}

References FL_NOEXCEPT.

Referenced by loop().

+ Here is the caller graph for this function: