Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/BinarySearch.h |
| Include | #include "Algo/BinarySearch.h" |
namespace AlgoImpl
{
template<typename RangeValueType, typename SizeType, typename PredicateValueType, typename ProjectionType, typename SortPredicateType>
SizeType AlgoImpl::UpperBoundInternal
(
RangeValueType * First,
const SizeType Num,
const PredicateValueType & Value,
ProjectionType Projection,
SortPredicateType SortPredicate
)
}
Remarks
Performs binary search, resulting in position of the first element that is larger than the given value Position of the first element > Value, may be == Num
Parameters
| Name | Description |
|---|---|
| First | Pointer to array |
| Num | Number of elements in array |
| Value | Value to look for |
| SortPredicate | Predicate for sort comparison |