AlgoImpl::IsHeapInternal

Verifies that the range is a min-heap (parent <= child) This is the internal function used by IsHeap overrides.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/IsHeap.h

Include

#include "Algo/IsHeap.h"

Syntax

namespace AlgoImpl
{
    template<typename RangeValueType, typename IndexType, typename ProjectionType, typename PredicateType>
    bool AlgoImpl::IsHeapInternal
    (
        RangeValueType * Heap,
        IndexType Num,
        ProjectionType Projection,
        PredicateType Predicate
    )
}

Remarks

Verifies that the range is a min-heap (parent <= child) This is the internal function used by IsHeap overrides.

Returns

returns true if the range is a min-heap

Parameters

Parameter

Description

Heap

Pointer to the first element of a binary heap.

Num

the number of items in the heap.

Projection

The projection to apply to the elements.

Predicate

A binary predicate object used to specify if one element should precede another.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss