Template Function eastl::push_heap(RandomAccessIterator, RandomAccessIterator, Compare)¶
- Defined in File heap.h
Function Documentation¶
-
template<typename
RandomAccessIterator
, typenameCompare
>
voideastl
::
push_heap
(RandomAccessIterator first, RandomAccessIterator last, Compare compare) push_heap
This version is useful for cases where your object comparison is unusual or where you want to have the heap store pointers to objects instead of storing the objects themselves (often in order to improve cache coherency while doing sorting).
The Compare function must work equivalently to the compare function used to make and maintain the heap.