Algo::StableSort

Sort a range of elements using a user-defined predicate class. The sort is stable.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/StableSort.h"

Syntax

namespace Algo
{
    template<typename RangeType, typename PredicateType>
    void Algo::StableSort
    (
        RangeType & Range,
        PredicateType Pred
    )
}

Remarks

Sort a range of elements using a user-defined predicate class. The sort is stable.

Parameters

Parameter

Description

Range

The range to sort.

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