Algo::IsSorted

Tests if a range is sorted by its element type's operator<.

Windows
MacOS
Linux

Deprecated

  • IsSorted taking a pointer and size has been deprecated - please pass a TArrayView instead

References

Module

Core

Header

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

Include

#include "Algo/IsSorted.h"

Syntax

namespace Algo
{
    template<typename T>
    bool Algo::IsSorted
    (
        const T * Array,
        int32 ArraySize
    )
}

Remarks

Tests if a range is sorted by its element type's operator<.

Returns

true if the range is sorted, false otherwise.

Parameters

Parameter

Description

Array

A pointer to the array to test for being sorted.

ArraySize

The number of elements in the array.

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