Navigation
API > API/Runtime > API/Runtime/Core
Description
Performs heap sort on the elements. This is the internal sorting function used by HeapSort overrides.
| Name | AlgoImpl::HeapSortInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Impl/BinaryHeap.h |
| Include Path | #include "Algo/Impl/BinaryHeap.h" |
namespace AlgoImpl
{
template<typename RangeValueType, typename IndexType, typename ProjectionType, class PredicateType>
void AlgoImpl::HeapSortInternal
(
RangeValueType * First,
IndexType Num,
ProjectionType Proj,
PredicateType Predicate
)
}
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element to sort |
| Num | the number of elements to sort |
| Proj | The projection to apply to the elements. |
| Predicate | A binary predicate object used to specify if one element should precede another. |