FBinaryFindIndex::GreaterEqual

Executes a binary search for element Item in array Array using the >= operator (i.e. uses the comparison Array[i] >= Item).

Windows
MacOS
Linux

References

Module

Profiler

Header

/Engine/Source/Developer/Profiler/Public/ProfilerCommon.h

Include

#include "ProfilerCommon.h"

Syntax

template<class T>
static int32 GreaterEqual
(
    const TArray< T > & Array,
    const T & Item,
    const int32 FirstIndex,
    const int32 LastIndex
)

Remarks

Executes a binary search for element Item in array Array using the >= operator (i.e. uses the comparison Array[i] >= Item). Assumes that Array is pre-sorted.

Returns

Returns the first index of the element that is greater than or equal to Item, or, if Item is not found, returns the last index + 1.

Parameters

Parameter

Description

Array

The Array to search

Item

The item to search for

FirstIndex

  1. Function will not search before this index. Default is 0

LastIndex

  1. Function will not search beyond this index. Default is INDEX_NONE

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