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 364 of file algorithm.h.

364 {
365 if (first == middle || middle == last) {
366 return;
367 }
368
369 Iterator next = middle;
370 while (first != next) {
371 swap(*first++, *next++);
372 if (next == last) {
373 next = middle;
374 } else if (first == middle) {
375 middle = next;
376 }
377 }
378}
void swap(array< T, N > &lhs, array< T, N > &rhs) noexcept(noexcept(lhs.swap(rhs)))
Definition array.h:156

References fl::swap().

Referenced by merge_inplace().

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