释放密钥中的内存 (规范)
参数: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