Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(in) | :: | self | The string. |
Result of the test.
Return true if the string is allocated.
elemental function is_allocated(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Return true if the string is allocated.
!---------------------------------------------------------------------------------------------------------------------------------
class(string), intent(in) :: self !< The string.
logical :: is_allocated !< Result of the test.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
is_allocated = allocated(self%raw)
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction is_allocated