free_key 子程序

public subroutine free_key(key)

释放密钥中的内存 (规范)

参数:key - 密钥

参数

类型 意图可选 属性 名称
type(key_type), intent(inout) :: key

源代码

    subroutine free_key( key )
!! Version: Experimental
!!
!! Frees the memory in a key
!! ([Specifications](../page/specs/stdlib_hashmaps.html#free_key-frees-the-memory-associated-with-a-key))
!!
!! Arguments:
!!     key  - the key
        type(key_type), intent(inout) :: key

        if ( allocated( key % value ) ) deallocate( key % value )

    end subroutine free_key