Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/IsHeap.h |
Include |
#include "Algo/IsHeap.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType>
bool Algo::IsHeapBy
(
RangeType & Range,
ProjectionType Projection
)
}
Verifies that the range is a min-heap (parent <= child). Assumes < operator is defined for the projected element type.
returns true if the range is a min-heap
Parameter |
Description |
---|---|
Range |
The range to verify. |
Projection |
The projection to apply to the elements. |