Navigation
API > API/Developer > API/Developer/TraceServices
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosest
(
const TPagedArray< ItemType, PageType >& PagedArray, |
Common/PagedArray.h | ||
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosest
(
const TPagedArray< ItemType, PageType >& PagedArray, |
Performs binary search, resulting in position of the first element closest to Value. | Common/PagedArray.h |
TraceServices::PagedArrayAlgo::BinarySearchClosest(const TPagedArray< ItemType, PageType > &, const ItemType &)
| Name | TraceServices::PagedArrayAlgo::BinarySearchClosest |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/PagedArray.h |
| Include Path | #include "Common/PagedArray.h" |
namespace TraceServices
{
namespace PagedArrayAlgo
{
template<typename ItemType, typename PageType>
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosest
(
const TPagedArray < ItemType, PageType > & PagedArray,
const ItemType & Value
)
}
}
TraceServices::PagedArrayAlgo::BinarySearchClosest(const TPagedArray< ItemType, PageType > &, const ItemType &, SortPredicateType)
Description
Performs binary search, resulting in position of the first element closest to Value.
| Name | TraceServices::PagedArrayAlgo::BinarySearchClosest |
| Type | function |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/PagedArray.h |
| Include Path | #include "Common/PagedArray.h" |
namespace TraceServices
{
namespace PagedArrayAlgo
{
template<typename ItemType, typename PageType, typename SortPredicateType>
decltype(GetNum(PagedArray)) TraceServices::PagedArrayAlgo::BinarySearchClosest
(
const TPagedArray < ItemType, PageType > & PagedArray,
const ItemType & Value,
SortPredicateType SortPredicate
)
}
}
The position of the first element closest to Value; == 0 if Num == 0, otherwise is a value in range [0 .. Num-1].
Parameters
| Name | Remarks |
|---|---|
| PagedArray | The paged array to search through; must be already sorted by SortPredicate. |
| Value | The value to look for |
| SortPredicate | The predicate for sort comparison; defaults to <. |