push_heap (RandomAccessIterator first, RandomAccessIterator last) | Function |
push_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) | Function |
templatevoid push_heap(RandomAccessIterator first, RandomAccessIterator last); template void push_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp);
push_heap assumes the range [first, last - 1) is a valid heap and properly places the value in the location last - 1 into the resulting heap [first, last). At most \log(last - first) comparisons are performed.
pop_heap (RandomAccessIterator first, RandomAccessIterator last) | Function |
pop_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) | Function |
templatevoid pop_heap(RandomAccessIterator first, RandomAccessIterator last); template void pop_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp);
pop_heap assumes the range [first, last) is a valid heap, then swaps the value in the location first with the value in the location last - 1 and makes [first, last - 1) into a heap. At most 2 * \log(last - first) comparisons are performed.
make_heap (RandomAccessIterator first, RandomAccessIterator last) | Function |
make_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) | Function |
templatevoid make_heap(RandomAccessIterator first, RandomAccessIterator last); template void make_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp);
make_heap constructs a heap out of the range [first, last). At most 3*(last - first) comparisons are performed.
sort_heap (RandomAccessIterator first, RandomAccessIterator last) | Function |
sort_heap (RandomAccessIterator first, RandomAccessIterator last, Compare comp) | Function |
templatevoid sort_heap(RandomAccessIterator first, RandomAccessIterator last); template void sort_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp);
sort_heap sorts elements in the heap [first, last). At most N \log N comparisons are performed where N is equal to last - first. sort_heap is not stable.
|
|