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

Function Documentation

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


Given a position that has just been vacated, this function moves new values into that vacated position appropriately. The value argument is an entry which will be inserted into the heap after we move nodes into the positions that were vacated.

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