Destroy the dictionary.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dictionary), | intent(inout) | :: | self | The dictionary. |
elemental subroutine destroy(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Destroy the dictionary.
!---------------------------------------------------------------------------------------------------------------------------------
class(dictionary), intent(inout) :: self !< The dictionary.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (associated(self%head)) call destroy_dictionary_node(node=self%head)
self%head => null()
self%tail => null()
self%nodes_number = 0
self%ids_ = 0
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine destroy