Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TJugglingRotation< TGCDPolicy > Class Template Reference

#include <Sorting.h>

Static Public Member Functions

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

Detailed Description

template<class TGCDPolicy>
class TJugglingRotation< TGCDPolicy >

Array rotation using juggling technique.

@template_param TGCDPolicy Policy for calculating greatest common divisor.

Definition at line 190 of file Sorting.h.

Member Function Documentation

◆ 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.

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

Definition at line 202 of file Sorting.h.


The documentation for this class was generated from the following file: