engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
TJugglingRotation< TGCDPolicy > 模板类 参考

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. 更多...
 

详细描述

template<class TGCDPolicy>
class TJugglingRotation< TGCDPolicy >

Array rotation using juggling technique.

@template_param TGCDPolicy Policy for calculating greatest common divisor.

成员函数说明

◆ Rotate()

template<class TGCDPolicy >
template<class T >
static void TJugglingRotation< TGCDPolicy >::Rotate ( T *  First,
const int32  From,
const int32  To,
const int32  Amount 
)
inlinestatic

Rotates array.

参数
FirstPointer to the array.
FromRotation starting point.
ToRotation ending point.
AmountAmount of steps to rotate.

该类的文档由以下文件生成: