Returns a pointer to the data stored in the list.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(list), | intent(in) | :: | me | |||
| class(*), | intent(in) | :: | key | |||
| class(*), | intent(out), | pointer | :: | value |
subroutine get_data(me,key,value) implicit none class(list),intent(in) :: me class(*),intent(in) :: key class(*),pointer,intent(out) :: value type(node),pointer :: p call me%get_node(key,p) if (associated(p)) then value => p%value else value => null() end if end subroutine get_data