Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/IntroSort.h |
Include |
#include "Algo/IntroSort.h" |
namespace AlgoImpl
{
template<typename T, typename IndexType, typename ProjectionType, typename PredicateType>
void AlgoImpl::IntroSortInternal
(
T * First,
IndexType Num,
ProjectionType Projection,
PredicateType Predicate
)
}
Implementation of an introspective sort. Starts with quick sort and switches to heap sort when the iteration depth is too big. The sort is unstable, meaning that the ordering of equal items is not necessarily preserved. This is the internal sorting function used by IntroSort overrides.
Parameter |
Description |
---|---|
First |
pointer to the first element to sort |
Num |
the number of items to sort |
Projection |
The projection to sort by when applied to the element. |
Predicate |
predicate class |