cpp/algorithm/ranges/is heap

Checks if the elements in range are a.

@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
if the range is max heap, otherwise.

Complexity
Linear in the distance between and.