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

Merge sort class. 更多...

#include <Sorting.h>

静态 Public 成员函数

template<class T , class PREDICATE_CLASS >
static void Sort (T *First, const int32 Num, const PREDICATE_CLASS &Predicate)
 Sort the array. 更多...
 

详细描述

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.

成员函数说明

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

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

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