Algo::IsSortedBy

Tests if a range is sorted by a projection of the element type, using the projection's operator<.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/IsSorted.h"

Syntax

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

Remarks

Tests if a range is sorted by a projection of the element type, using the projection's operator<.

Returns

true if the range is sorted, false otherwise.

Parameters

Parameter

Description

Range

The container to test for being sorted.

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