FastLED 3.10.10
Loading...
Searching...
No Matches

◆ rotate_impl()

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

Definition at line 461 of file algorithm.h.

461 {
462 if (first == middle || middle == last) {
463 return;
464 }
465
466 Iterator next = middle;
467 while (first != next) {
468 swap(*first++, *next++);
469 if (next == last) {
470 next = middle;
471 } else if (first == middle) {
472 middle = next;
473 }
474 }
475}
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: