Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(inout) | :: | self | The string. |
Free dynamic memory.
elemental subroutine free(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Free dynamic memory.
!---------------------------------------------------------------------------------------------------------------------------------
class(string), intent(inout) :: self !< The string.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(self%raw)) deallocate(self%raw)
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine free