free_other 子程序

public subroutine free_other(other)

释放 other 数据中的内存 (规范)

参数:other - 其他数据

参数

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

源代码

    subroutine free_other( other )
!! Version: Experimental
!!
!! Frees the memory in the other data
!! ([Specifications](../page/specs/stdlib_hashmaps.html#free_other-frees-the-memory-associated-with-other-data))
!!
!! Arguments:
!!     other  - the other data
        type(other_type), intent(inout) :: other

        if ( allocated( other % value) ) deallocate( other % value )

    end subroutine free_other