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 | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hash_map_t), | intent(in) | :: | this |
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