Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo > API/Runtime/Core/Algo/Algo__IsHeapBy
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/IsHeap.h |
| Include | #include "Algo/IsHeap.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType, typename PredicateType>
bool Algo&58;&58;IsHeapBy
&40;
RangeType & Range,
ProjectionType Projection,
PredicateType Predicate
&41;
}
Remarks
Verifies that the range is a min-heap (parent <= child) returns true if the range is a min-heap
Parameters
| Name | Description |
|---|---|
| Range | The range to verify. |
| Projection | The projection to apply to the elements. |
| Predicate | A binary predicate object used to specify if one element should precede another. |