Number of entries the heap can hold before it has to grow.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(heap_t), | intent(in) | :: | self |
pure function heap_capacity(self) result(cap) !! Number of entries the heap can hold before it has to grow. class(heap_t), intent(in) :: self integer(default_int) :: cap cap = 0 if (allocated(self%keys)) cap = int(size(self%keys), default_int) end function heap_capacity