cpp/algorithm/ranges/pop heap

Swaps the value in the position and the value in the position  and makes the subrange  into a. This has the effect of removing the first element from the heap defined by the range.

@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.