Algo::HeapSortBy

Performs heap sort on the elements. Assumes < operator is defined for the projected element type.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/HeapSort.h"

Syntax

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

Remarks

Performs heap sort on the elements. Assumes < operator is defined for the projected element type.

Parameters

Parameter

Description

Range

The range to sort.

Projection

The projection to sort by when applied to the element.

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