MCPcopy Create free account
hub / github.com/FastLED/FastLED / reverse

Function reverse

src/fl/stl/algorithm.h:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template <typename Iterator>
11void reverse(Iterator first, Iterator last) FL_NOEXCEPT {
12 while ((first != last) && (first != --last)) {
13 swap(*first++, *last);
14 }
15}
16
17template <typename Iterator>
18Iterator max_element(Iterator first, Iterator last) FL_NOEXCEPT {

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected