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

◆ min_element() [1/2]

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

Definition at line 55 of file algorithm.h.

55 {
56 if (first == last) {
57 return last;
58 }
59
60 Iterator min_iter = first;
61 ++first;
62
63 while (first != last) {
64 if (*first < *min_iter) {
65 min_iter = first;
66 }
67 ++first;
68 }
69
70 return min_iter;
71}