Navigation
API > API/Developer > API/Developer/Profiler > API/Developer/Profiler/FBinaryFindIndex
References
| Module | Profiler |
| Header | /Engine/Source/Developer/Profiler/Public/ProfilerCommon.h |
| Include | #include "ProfilerCommon.h" |
template<class T>
static int32 LessEqual
(
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 the last index of the element that is smaller than or equal to Item, or, if Item is not found, returns 0.
Parameters
| Name | Description |
|---|---|
| Array | The Array to search |
| Item | The item to search for |
| FirstIndex | Optional. Function will not search before this index. Default is 0 |
| LastIndex | Optional. Function will not search beyond this index. Default is INDEX_NONE |