hasNext

operator fun hasNext(): Boolean

Tests whether this heap contains more items.

Return

true if this heap contains at least one more item, false if this heap contains zero items.