Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void HeapRemoveAt
(
SizeType Index, |
Removes an element from the heap. | Containers/Array.h | |
void HeapRemoveAt
(
SizeType Index, |
Containers/Array.h | ||
void HeapRemoveAt
(
SizeType Index, |
Removes an element from the heap. | Containers/Array.h | |
void HeapRemoveAt
(
SizeType Index, |
Containers/Array.h |
HeapRemoveAt(SizeType, EAllowShrinking)
Description
- Removes an element from 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 | HeapRemoveAt |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void HeapRemoveAt
(
SizeType Index,
EAllowShrinking AllowShrinking
)
Parameters
| Name | Remarks |
|---|---|
| Index | Position at which to remove item. |
| AllowShrinking | (Optional) Tells if this call can shrink the array allocation if suitable after the remove (default = yes). |
HeapRemoveAt(SizeType, bool)
| Name | HeapRemoveAt |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void HeapRemoveAt
(
SizeType Index,
bool bAllowShrinking
)
HeapRemoveAt(SizeType, const PREDICATE_CLASS &, EAllowShrinking)
Description
- Removes an element from 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 | HeapRemoveAt |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<class PREDICATE_CLASS>
void HeapRemoveAt
(
SizeType Index,
const PREDICATE_CLASS & Predicate,
EAllowShrinking AllowShrinking
)
Parameters
| Name | Remarks |
|---|---|
| Index | Position at which to remove item. |
| Predicate | Predicate class instance. |
| AllowShrinking | (Optional) Tells if this call can shrink the array allocation if suitable after the remove (default = yes). |
HeapRemoveAt(SizeType, const PREDICATE_CLASS &, bool)
| Name | HeapRemoveAt |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<class PREDICATE_CLASS>
void HeapRemoveAt
(
SizeType Index,
const PREDICATE_CLASS & Predicate,
bool bAllowShrinking
)