Array rotation using juggling technique. 更多...
#include <Sorting.h>
静态 Public 成员函数 | |
| template<class T > | |
| static void | Rotate (T *First, const int32 From, const int32 To, const int32 Amount) |
| Rotates array. 更多... | |
Array rotation using juggling technique.
@template_param TGCDPolicy Policy for calculating greatest common divisor.
|
inlinestatic |
Rotates array.
| First | Pointer to the array. |
| From | Rotation starting point. |
| To | Rotation ending point. |
| Amount | Amount of steps to rotate. |