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

◆ rotate_impl()

template<typename Iterator>
void fl::detail::rotate_impl ( Iterator first,
Iterator middle,
Iterator last )

Definition at line 429 of file algorithm.h.

429 {
430 if (first == middle || middle == last) {
431 return;
432 }
433
434 Iterator next = middle;
435 while (first != next) {
436 swap(*first++, *next++);
437 if (next == last) {
438 next = middle;
439 } else if (first == middle) {
440 middle = next;
441 }
442 }
443}
void swap(array< T, N > &lhs, array< T, N > &rhs) FL_NO_EXCEPT
Definition array.h:209

References fl::FL_NO_EXCEPT, and fl::swap().

Referenced by merge_inplace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: