Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SizeType HeapPush
(
ElementType&& InItem |
Adds a new element to the heap. | Containers/Array.h | |
SizeType HeapPush
(
const ElementType& InItem |
Adds a new element to the heap. | Containers/Array.h | |
SizeType HeapPush
(
ElementType&& InItem, |
Adds a new element to the heap. | Containers/Array.h | |
SizeType HeapPush
(
const ElementType& InItem, |
Adds a new element to the heap. | Containers/Array.h |
HeapPush(ElementType &&)
Description
- Adds a new element to the heap. 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 | HeapPush |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
SizeType HeapPush
(
ElementType && InItem
)
The index of the new element.
Parameters
| Name | Remarks |
|---|---|
| InItem | Item to be added. |
HeapPush(const ElementType &)
Description
- Adds a new element to the heap. 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 | HeapPush |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
SizeType HeapPush
(
const ElementType & InItem
)
The index of the new element.
Parameters
| Name | Remarks |
|---|---|
| InItem | Item to be added. |
HeapPush(ElementType &&, const PREDICATE_CLASS &)
Description
- Adds a new element to the heap.
-
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 | HeapPush |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<class PREDICATE_CLASS>
SizeType HeapPush
(
ElementType && InItem,
const PREDICATE_CLASS & Predicate
)
The index of the new element.
Parameters
| Name | Remarks |
|---|---|
| InItem | Item to be added. |
| Predicate | Predicate class instance. |
HeapPush(const ElementType &, const PREDICATE_CLASS &)
Description
- Adds a new element to the heap.
-
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 | HeapPush |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<class PREDICATE_CLASS>
SizeType HeapPush
(
const ElementType & InItem,
const PREDICATE_CLASS & Predicate
)
The index of the new element.
Parameters
| Name | Remarks |
|---|---|
| InItem | Item to be added. |
| Predicate | Predicate class instance. |