AlgoImpl::LegacySortInternal

Sort elements using user defined predicate class.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/LegacySort.h"

Syntax

namespace AlgoImpl
{
    template<typename T, typename ProjectionType, typename PredicateType>
    void AlgoImpl::LegacySortInternal
    (
        T * First,
        int32 Num,
        ProjectionType Projection,
        PredicateType Predicate
    )
}

Remarks

Sort elements using user defined predicate class. The sort is unstable, meaning that the ordering of equal items is not necessarily preserved. This is the internal sorting function used by Sort overrides. This used to be Algo::Sort and is now considered legacy.

Parameters

Parameter

Description

First

pointer to the first element to sort

Num

the number of items to sort

Predicate

predicate class

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