dict_str_i4_size Function

private function dict_str_i4_size(dict) result(size)

Returns the number of key/value-items currently stored in the dictionary.

Arguments

Type IntentOptional Attributes Name
type(dict_str_i4_type), intent(inout) :: dict

Return Value integer


Source Code

      FUNCTION dict_str_i4_size(dict) RESULT(size)
      !! Returns the number of key/value-items currently stored in the dictionary.
         TYPE(dict_str_i4_type), intent(inout)  :: dict
         INTEGER :: size

         IF (.not. ASSOCIATED(dict%buckets)) &
            DBCSR_ABORT("dict_str_i4_size: dictionary is not initialized.")

         size = dict%size
      END FUNCTION dict_str_i4_size