cpp/algorithm/ranges/sort heap

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

@1@ Elements are compared using the given binary comparison function and projection object.

@2@ Same as, but uses as the range, as if using  as  and  as.

Return value
An iterator equal to.

Complexity
Given, at most comparisons and  projections.