Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/IsHeap.h |
| Include | #include "Algo/IsHeap.h" |
namespace AlgoImpl
{
template<typename RangeValueType, typename IndexType, typename ProjectionType, typename PredicateType>
bool AlgoImpl::IsHeapInternal
(
RangeValueType * Heap,
IndexType Num,
ProjectionType Projection,
PredicateType Predicate
)
}
Remarks
Verifies that the range is a min-heap (parent <= child) This is the internal function used by IsHeap overrides. returns true if the range is a min-heap
Parameters
| Name | Description |
|---|---|
| Heap | Pointer to the first element of a binary heap. |
| Num | the number of items in the heap. |
| Projection | The projection to apply to the elements. |
| Predicate | A binary predicate object used to specify if one element should precede another. |