Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void HeapSort () |
Performs heap sort on the array. | Containers/Array.h | |
void HeapSort
(
const PREDICATE_CLASS& Predicate |
Performs heap sort on the array. | Containers/Array.h |
HeapSort()
Description
- Performs heap sort on the array. Assumes < operator is defined for the template type.
-
If your array contains raw pointers, they will be automatically dereferenced during heapification. Therefore, your array will be heapified by the values being pointed to, rather than the pointers' values. The auto-dereferencing behavior does not occur with smart pointers.
| Name | HeapSort |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void HeapSort()
HeapSort(const PREDICATE_CLASS &)
Description
- Performs heap sort on the array.
-
If your array contains raw pointers, they will be automatically dereferenced during heapification. Therefore, your predicate will be passed references rather than pointers. The auto-dereferencing behavior does not occur with smart pointers.
| Name | HeapSort |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<class PREDICATE_CLASS>
void HeapSort
(
const PREDICATE_CLASS & Predicate
)
Parameters
| Name | Remarks |
|---|---|
| Predicate | Predicate class instance. |