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