FastLED 3.10.8
Loading...
Searching...
No Matches

◆ max_element() [1/2]

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

Definition at line 21 of file algorithm.h.

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

References fl::FL_NO_EXCEPT.

Referenced by loop().

+ Here is the caller graph for this function: