AlgoImpl::StableSortInternal

Sort elements using user defined projection and predicate classes.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/StableSort.h"

Syntax

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

Remarks

Sort elements using user defined projection and predicate classes. The sort is stable, meaning that the ordering of equal items is preserved. This is the internal sorting function used by the Algo::Sort overloads.

Parameters

Parameter

Description

First

Pointer to the first element to sort.

Num

The number of items to sort.

Projection

A projection to apply to each element to get the value to sort by.

Predicate

A predicate class which compares two projected elements and returns whether one occurs before the other.

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