Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TMergeSort< TMergePolicy, MinMergeSubgroupSize > Class Template Reference

#include <Sorting.h>

Static Public Member Functions

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

Detailed Description

template<class TMergePolicy, int32 MinMergeSubgroupSize = 2>
class TMergeSort< TMergePolicy, MinMergeSubgroupSize >

Merge sort class.

@template_param TMergePolicy Merging policy. @template_param MinMergeSubgroupSize Minimal size of the subgroup that should be merged.

Definition at line 275 of file Sorting.h.

Member Function Documentation

◆ Sort()

template<class TMergePolicy , int32 MinMergeSubgroupSize = 2>
template<class T , class PREDICATE_CLASS >
static void TMergeSort< TMergePolicy, MinMergeSubgroupSize >::Sort ( T * First,
const int32 Num,
const PREDICATE_CLASS & Predicate )
inlinestatic

Sort the array.

Parameters
FirstPointer to the array.
NumNumber of elements in the array.
PredicatePredicate for comparison.

Definition at line 286 of file Sorting.h.


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