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

#include <Sorting.h>

Static Public Member Functions

template<class T , class PREDICATE_CLASS >
static void Merge (T *First, const int32 Mid, const int32 Num, const PREDICATE_CLASS &Predicate)
 

Detailed Description

template<class TRotationPolicy>
class TRotationInPlaceMerge< TRotationPolicy >

Merge policy for merge sort.

@template_param TRotationPolicy Policy for array rotation algorithm.

Definition at line 233 of file Sorting.h.

Member Function Documentation

◆ Merge()

template<class TRotationPolicy >
template<class T , class PREDICATE_CLASS >
static void TRotationInPlaceMerge< TRotationPolicy >::Merge ( T * First,
const int32 Mid,
const int32 Num,
const PREDICATE_CLASS & Predicate )
inlinestatic

Two sorted arrays merging function.

Parameters
FirstPointer to array.
MidMiddle point i.e. separation point of two arrays to merge.
NumNumber of elements in array.
PredicatePredicate for comparison.

Definition at line 245 of file Sorting.h.


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