hash_map_bucket_count Function

private pure function hash_map_bucket_count(this) result(n)

Current number of buckets, 0 while the map is unallocated. Exposed so that callers and tests can observe growth; it never affects iteration order.

Type Bound

hash_map_t

Arguments

Type IntentOptional Attributes Name
class(hash_map_t), intent(in) :: this

Return Value integer(kind=default_int)


Source Code

   pure function hash_map_bucket_count(this) result(n)
      !! Current number of buckets, 0 while the map is unallocated. Exposed so
      !! that callers and tests can observe growth; it never affects iteration
      !! order.
      class(hash_map_t), intent(in) :: this
      integer(default_int) :: n

      n = this%n_buckets
   end function hash_map_bucket_count