| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hashtbl_obj), | intent(inout) | :: | this |
Hashtable object |
||
| integer, | intent(in) | :: | key |
Key from key-val pair to remove from hashtable |
pure subroutine hashtbl_obj_Remove(this,key) ! Removes a key (and its associated value) from ! the hashtable. implicit none class(hashtbl_obj), intent(inout) :: this !! Hashtable object integer, intent(in) :: key !! Key from key-val pair to remove from hashtable ! Work variable integer :: hash hash = mod(key,this%vec_len) + 1 call this%vec(hash)%Remove(key=key) return end subroutine hashtbl_obj_Remove