Algo::IsHeapBy

Verifies that the range is a min-heap (parent <= child).

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/IsHeap.h"

Syntax

namespace Algo
{
    template<typename RangeType, typename ProjectionType>
    bool Algo::IsHeapBy
    (
        RangeType & Range,
        ProjectionType Projection
    )
}

Remarks

Verifies that the range is a min-heap (parent <= child). Assumes < operator is defined for the projected element type.

Returns

returns true if the range is a min-heap

Parameters

Parameter

Description

Range

The range to verify.

Projection

The projection to apply to the elements.

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