cpp/algorithm/sort heap

Converts the  into a sorted range in ascending order. The resulting range no longer has the heap property.

The first version of the function uses to compare the elements, the second uses the given comparison function.

Return value
(none)

Complexity
At most 2&times;N&times;log(N) comparisons where.