TArray::HeapPopDiscard

Syntax

template<class PREDICATE_CLASS>
void HeapPopDiscard
(
    const PREDICATE_CLASS & Predicate,
    bool bAllowShrinking
)

Remarks

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.

Parameters

Parameter

Description

Predicate

Predicate class instance.

bAllowShrinking

(Optional) Tells if this call can shrink the array allocation if suitable after the discard. Default is true.

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h