Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Heapify () |
Builds an implicit heap from the array. | Containers/Array.h | |
void Heapify
(
const PREDICATE_CLASS& Predicate |
Implicit heaps Builds an implicit heap from the array. | Containers/Array.h |
Heapify()
Description
- Builds an implicit heap from 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 | Heapify |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void Heapify()
Heapify(const PREDICATE_CLASS &)
Description
- Implicit heaps Builds an implicit heap from 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 | Heapify |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<class PREDICATE_CLASS>
void Heapify
(
const PREDICATE_CLASS & Predicate
)
Parameters
| Name | Remarks |
|---|---|
| Predicate | Predicate class instance. |