destroy the data in the node.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(node), | intent(inout) | :: | me |
impure elemental subroutine destroy_node_data(me) implicit none class(node),intent(inout) :: me if (allocated(me%key)) deallocate(me%key) if (me%destroy_on_delete) then ! deallocates the pointer (and call any finalizer) ! (otherwise, it is up to the caller to do this) if (associated(me%value)) deallocate(me%value) end if nullify(me%value) end subroutine destroy_node_data