Template Function eastl::adjust_heap(RandomAccessIterator, Distance, Distance, Distance, T&&, Compare)

Function Documentation

template<typename RandomAccessIterator, typename Distance, typename T, typename Compare>
void eastl::adjust_heap(RandomAccessIterator first, Distance topPosition, Distance heapSize, Distance position, T &&value, Compare compare)


The Compare function must work equivalently to the compare function used to make and maintain the heap.

This function requires that the value argument refer to a value that is currently not within the heap.