Module |
|
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
)
}
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
Parameter |
Description |
---|---|
First |
Pointer to array |
Num |
Number of elements in array |
Value |
Value to look for |
SortPredicate |
Predicate for sort comparison |