is_allocated Function

private elemental function is_allocated(self)

Arguments

Type IntentOptional AttributesName
class(string), intent(in) :: self

The string.

Return Value logical

Result of the test.

Description

Return true if the string is allocated.


Source Code

  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