heap_size Function

private pure function heap_size(self) result(n)

Number of entries currently in the heap.

Type Bound

heap_t

Arguments

Type IntentOptional Attributes Name
class(heap_t), intent(in) :: self

Return Value integer(kind=default_int)


Source Code

   pure function heap_size(self) result(n)
      !! Number of entries currently in the heap.
      class(heap_t), intent(in) :: self
      integer(default_int) :: n

      n = self%n_entries
   end function heap_size