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

◆ rotate_impl()

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

Definition at line 424 of file algorithm.h.

424 {
425 if (first == middle || middle == last) {
426 return;
427 }
428
429 Iterator next = middle;
430 while (first != next) {
431 swap(*first++, *next++);
432 if (next == last) {
433 next = middle;
434 } else if (first == middle) {
435 middle = next;
436 }
437 }
438}
void swap(array< T, N > &lhs, array< T, N > &rhs) FL_NOEXCEPT
Definition array.h:209

References FL_NOEXCEPT, and fl::swap().

Referenced by merge_inplace().

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