Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
decltype(GetNum(Range)) Algo::UpperBoundBy
(
const RangeType& Range, |
Algo/BinarySearch.h | ||
decltype(GetNum(Range)) Algo::UpperBoundBy
(
const RangeType& Range, |
Performs binary search, resulting in position of the first element with projected value > Value using predicate | Algo/BinarySearch.h |
Algo::UpperBoundBy(const RangeType &, const ValueType &, ProjectionType)
| Name | Algo::UpperBoundBy |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/BinarySearch.h |
| Include Path | #include "Algo/BinarySearch.h" |
namespace Algo
{
template<typename RangeType, typename ValueType, typename ProjectionType>
decltype(GetNum(Range)) Algo::UpperBoundBy
(
const RangeType & Range,
const ValueType & Value,
ProjectionType Projection
)
}
Algo::UpperBoundBy(const RangeType &, const ValueType &, ProjectionType, SortPredicateType)
Description
Performs binary search, resulting in position of the first element with projected value > Value using predicate
| Name | Algo::UpperBoundBy |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/BinarySearch.h |
| Include Path | #include "Algo/BinarySearch.h" |
namespace Algo
{
template<typename RangeType, typename ValueType, typename ProjectionType, typename SortPredicateType>
decltype(GetNum(Range)) Algo::UpperBoundBy
(
const RangeType & Range,
const ValueType & Value,
ProjectionType Projection,
SortPredicateType SortPredicate
)
}
Position of the first element > Value, may be past end of range
Parameters
| Name | Remarks |
|---|---|
| Range | Range to search through, must be already sorted by SortPredicate |
| Value | Value to look for |
| Projection | Functor or data member pointer, called via Invoke to compare to Value |
| SortPredicate | Predicate for sort comparison, defaults to < |